-
Notifications
You must be signed in to change notification settings - Fork 57
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
Compatibility with numpy 1.21 #139
Comments
I often get a ton of those warnings. These come from compiling the underlying Fortran code (IRI, MSIS, etc.) so it's not something we can control unfortunately. The first issue regarding iri_sub is more critical and likely implies that IRI did not install correctly. It looks like you used python2 to install but your local Python is running 3.8. Maybe that's (part of) the issue? |
I have the same issue, can't get pyglow running. ImportError: cannot import name 'iri_sub' from 'iri12py' (/home/mag-proc/.local/lib/python3.8/site-packages/iri12py.cpython-38-x86_64-linux-gnu.so It's definitely installed in the correct Python 3.8 path. So what happened? |
Does anything in the long installation output look like a fatal error during the IRI install? If the .so was created, it seems like it installed. If you can attach the log here I could see if anything pops out to me. Did IRI16 install ok? |
Ok, I found the reason. I was using Numpy 1.21. It seems something has changed from 1.20 to 1.21. |
I think this is actually critical. I'm changing the name of this issue to reflect this. Thanks for tracking this down. (And open to PRs or any tips) |
Is there any progress on that issue?
Is there any progress on that topic? |
No progress yet. I'm very open to ideas and PRs. |
@Vaylyn reports that pyglow is also incompatible with numpy 1.22, so it appears this problem will not solve itself. This is probably pyglow's most critical issue at this time. |
Same issue encountered: can be fixed temporarily by including a version constraint in numpy in the |
Confirmed pyglow works on python 3.9 but not on 3.10 since numpy 1.20 is only compatible up to python 3.9 |
The cause are the COMMON blocks in the signature file sig_file_patched.pyf. |
I have managed to install pyglow with all the .so files appearing in the respective dl_models folders. After installing the python package I have tried to import into a Jupyter notebook and get the following error message:
cannot import name 'iri_sub' from 'iri12py' (/home/s1637615/.local/lib/python3.8/site-packages/iri12py.cpython-38-x86_64-linux-gnu.so)
Is this an issue with installation?
Also, when i executed the
python2 setup.py install --user
command hundreds of the following warnings came up:`Warning: Array reference at (1) is out of bounds (68 > 1) in dimension 1
src/pyglow/models/dl_models/hwm93/hwm93_modified.f:715:27:
715 | $ (PB(53)*BT(3,2)+PB(99)*BT(5,2)+PB(68)*BT(7,2))`
Is the best option to reinstall?
Thanks,
Luca
The text was updated successfully, but these errors were encountered: