-
Notifications
You must be signed in to change notification settings - Fork 59
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
Incompatible numpy API versions with Python 3.7 and 3.8 #157
Comments
Yes.... we could change the requirement, which says numpy>=1.20.0; python_version>="3.7" at moment. |
Would this change to the action work for now? |
@pazner |
Hi @sshiraiwa, were you able to look into this? |
This is on-going. (Sorry, it took a while to work on PR #159) |
Hi @pazner
Please note that all the dependencies need to be installed beforehand. This is because with -i option, pip try to |
The test binary works for me, thanks @sshiraiwa! |
I am using PyMFEM through Google Colab, and it looks like they just updated the Python version to 3.8.16 (I believe 3.7.x was the default before).
Now when I try
pip install mfem
the PyMFEM package is successfully installed, butimport mfem.ser as mfem
results inThe numpy version is 1.21.6, which used to be working with the older version of Python.
Updating numpy with
pip install -U numpy
fixes the problem for me, but I feel like this should be caught at thepip install mfem
stage.It looks like the issue is that the 3.7 binary is built with numpy 1.21.6 (see here) but the 3.8 binary is built with numpy 1.23.3 (see here).
Maybe the numpy version requirements need to be changed in requirements.txt?
(An ideal solution for me would allow the 3.8 binary to work with numpy 1.21.6, since this is what is available by default in Colab, and upgrading to a newer numpy version requires restarting the runtime)
Thanks!
The text was updated successfully, but these errors were encountered: