Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import iriweb module #23

Open
ljlamarche opened this issue Jul 22, 2022 · 3 comments
Open

Can't import iriweb module #23

ljlamarche opened this issue Jul 22, 2022 · 3 comments

Comments

@ljlamarche
Copy link

When running example01.py, I get the following error:

Traceback (most recent call last):
  File "/Users/e30737/Desktop/Software/pyIRI2016/examples/example01.py", line 15, in <module>
    main1()
  File "/Users/e30737/Desktop/Software/pyIRI2016/examples/example01.py", line 10, in main1
    IRIData, IRIDATAAdd = Obj.IRI()
  File "/Users/e30737/Desktop/Software/pyIRI2016/pyiri2016/__init__.py", line 81, in IRI
    hh, mm, ss = TimeUtilities().ToHMS(hrlt)
NameError: name 'TimeUtilities' is not defined

TimeUtilities is installed, but it is not being imported due to this try-except statement in __init__.py which fails to import iriwebg.

try:
    from .iriweb import iriwebg
    from timeutil import TimeUtilities
except ModuleNotFoundError:
    pass    # TODO

When the exception is printed, it produces No module named 'pyiri2016.iriweb', which I think suggests that the iriweb extension is not being built correctly when pyiri2016 is installed.

@Zlydzen
Copy link

Zlydzen commented Jul 12, 2023

@rilma the same problem!

@w2naf
Copy link

w2naf commented Jan 7, 2024

@rilma Same problem here! Has there been any progress on this?

@Adim-a11y
Copy link

NameError: name 'iriwebg' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants