-
Notifications
You must be signed in to change notification settings - Fork 75
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
pynbody import error #604
Comments
After writing this out I realized I should try with the conda-forge channel, which does have numpy 1.20.0. Adding
to the environment file solves the issue for me (though this may be more of a workaround than a solution, depending on the channels you want to be using). |
I am facing a similar issue when loading That is: pip3 install pynbody
ipython3 And then:
The issue goes away if I upgrade my |
This is a built-in 'feature' of pip, I'm afraid, where it builds against a siloed version of numpy instead of the one you actually have installed. Try passing |
The bug
I recently encountered the error below when trying to import pynbody, as did at least one other pynbody user. Similar issues have recently popped up in other packages (e.g., https://stackoverflow.com/questions/66193302/qiskit-error-numpy-ndarray-size-changed-may-indicate-binary-incompatibility, scikit-learn-contrib/hdbscan#457) since numpy released 1.20.0.
To Reproduce
I am using conda 4.9.2, and created an evironment with the environment.yml file below.
Steps to reproduce:
My setup in the described environment is below. I would have expected numpy to be version 1.20.0 given the new release, but it doesn't seem to be yet available in the default channels.
environment.yml
The text was updated successfully, but these errors were encountered: