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
BUG: import fails on Python 3.10 (mac-os only!) #20418
Comments
Where did you get NumPy? |
It seems your CI run https://github.com/staticdev/irpf-cei/runs/4266824409 somehow is getting numpy, but it does not state where or how. Can you make the |
I get numpy on Github Actions from PyPI. Though, I wasn't able to reproduce the error on Macbook using Python 3.10.0 and same version of numpy. Even when I don't have numpy imports, pandas imports indirectly generate the same errors https://github.com/staticdev/irpf-cei/runs/4291736117?check_suite_focus=true This is a very strange error that happens specifically on macos + python 3.10 I tried other combinations (using python3.9 and linux/windows). Any idea of how can I provide more info? |
BTW @charris @mattip I found two references saying that 1.19 version caused this error on macos. It also mentions a closed issue that could be considered a dupe from this one, but it was closed without fix: #15947 |
It has been a while since we had issues like this reported last, I think. One thing that sometimes happened was that Accelerate was loaded (e.g. by But, I feel our wheels should be immune to that, so probably your problem is that your CI ends up compiling NumPy from scratch (through pip) and that finds the system |
@seberg any idea how can I workaround this? For now I set macos Python to 3.9 and CI/CD works for testing. But I would really like to have it running on 3.10. |
@staticdev It isn't a bug, all that changed was a check for a known bad library, Accelerate, and the cure is to not use Accelerate. Numpy 1.21 now has wheels for Python 3.10 and should be used instead. Perhaps one of the other packages is requiring an earlier version? You might try upgrading Pandas. |
Also be sure that you install NumPy with pip to use |
For sure this is not the case, actually I use pip install requirements from exported requirements from poetry.lock, which is ensuring latest numpy: And also, I am using the latest pandas 1.3.4 BTW. |
Having the same issue with GitHub workflow on Python 3.10 and
|
@Deuchnord interesting, so it seems to be a very specific combination of |
Didn't see actions/runner-images#4060 until now, but looks like |
@Deuchnord retested with macos-latest from GA again today. It is working! I will close then. |
Describe the issue:
When I try to import numpy on mac-os using Py3.10 I get:
Reproduce the code example:
Error message:
The text was updated successfully, but these errors were encountered: