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

ERROR WHEN IMPORT PYGLOW #145

Closed
Armando123x opened this issue Mar 5, 2022 · 3 comments
Closed

ERROR WHEN IMPORT PYGLOW #145

Armando123x opened this issue Mar 5, 2022 · 3 comments

Comments

@Armando123x
Copy link

I have a virtual ven with Python 3.7. The version Numpy is 1.21.5, but I have the next problem when I import pyglow.

from pyglow import pyglow
Traceback (most recent call last):
File "", line 1, in
File "/home/arx/anaconda3/envs/py37/lib/python3.7/site-packages/pyglow/init.py", line 2, in
from .pyglow import version # noqa F401
File "/home/arx/anaconda3/envs/py37/lib/python3.7/site-packages/pyglow/pyglow.py", line 17, in
from .iri import IRI # noqa E402
File "/home/arx/anaconda3/envs/py37/lib/python3.7/site-packages/pyglow/iri.py", line 4, in
from iri12py import iri_sub as iri12
ImportError: cannot import name 'iri_sub' from 'iri12py' (/home/arx/anaconda3/envs/py37/lib/python3.7/site-packages/iri12py.cpython-37m-x86_64-linux-gnu.so)

@Armando123x Armando123x changed the title ERROR TO IMPORT PYGLOW ERROR WHEN IMPORT PYGLOW Mar 6, 2022
@bharding512
Copy link
Collaborator

Did IRI install correctly?

@Vaylyn
Copy link

Vaylyn commented Jun 1, 2022

I had the same issue when using NumPy 1.22. As it turned out you have to be careful about which NumPy version you use. With NumPy 1.18 the error didn't appear. I haven't testet the versions in between, but using NumPy 1.18 should resolve your issue.

@bharding512 Maybe you could add these version restrictions to the requirements file to avoid future issues.

@bharding512
Copy link
Collaborator

I'd prefer to solve the underlying problem. This issue appears to be a duplicate of #139, so I'm closing it. Please re-open if I misunderstood something. As always, ideas and PRs are very welcome.

@bharding512 bharding512 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2022
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

3 participants