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

Closed
manavbabel opened this issue Jul 19, 2024 · 2 comments
Closed

Numpy version dependency #470

manavbabel opened this issue Jul 19, 2024 · 2 comments
Labels
bug A bug or regression
Milestone

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.

@sserita sserita added the fixed but not in release yet Bug has been fixed, but isn't in an official release yet (just exists on a development branch) label Sep 19, 2024
@sserita sserita added this to the 0.9.13 milestone Sep 19, 2024
@sserita
Copy link
Contributor

sserita commented Sep 19, 2024

Fixed in #458

@sserita sserita closed this as completed Sep 19, 2024
@sserita sserita removed the fixed but not in release yet Bug has been fixed, but isn't in an official release yet (just exists on a development branch) label Jan 16, 2025
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

3 participants