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

Numpy version dependency #470

Open
manavbabel opened this issue Jul 19, 2024 · 1 comment
Open

Numpy version dependency #470

manavbabel opened this issue Jul 19, 2024 · 1 comment
Labels
bug A bug or regression

Comments

@manavbabel
Copy link

Describe the bug
When importing pygsti in an environment with numpy==2.0.0, an error is thrown saying the module numpy.lib.arraysetops is not found. I think this was removed in that version of numpy. The bug is fixed when numpy version 1.26.0 is used, so I suggest modifying the requirements file to specify this.

To Reproduce
In terminal:
pip install numpy pygsti # installs version 2.0.0 or above
In the Python environment:
import pygsti
Result:
ModuleNotFoundError: No module named 'numpy.lib.arraysetops'
Fixed with:
pip install numpy==1.26.0

Environment (please complete the following information):

  • pyGSTi version 0.9.12.3
  • numpy version 2.0.0
  • python version 3.11
  • OS Windows 10
@manavbabel manavbabel added the bug A bug or regression label Jul 19, 2024
@coreyostrove
Copy link
Contributor

Thanks for your report. This will be fixed with PR #458, and the fix should be available on the develop branch within the next few days. If you run into any other numpy 2.0 related issues please don't hesitate to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug or regression
Projects
None yet
Development

No branches or pull requests

2 participants