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

Bug with numpy when importing ProbNum package #862

Open
williamlaplante opened this issue Aug 27, 2024 · 0 comments
Open

Bug with numpy when importing ProbNum package #862

williamlaplante opened this issue Aug 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@williamlaplante
Copy link

Describe the bug
When I run "Import probnum as pn" and it runs the init.py file, I get an attribute error:
np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.
I downloaded probnum in a new/fresh conda environment, with no other packages installed prior to installing probnum (apart from the ones that are automatically installed in the process of installing the probnum package).

To Reproduce
Create a new conda environment with the most recent python version. Install pip, then run "pip install probnum". Open a python script and run "import probnum as pn" with no other lines of code.

Expected behavior
I would expect no attribute error to appear when importing the package.

System:

  • OS: MacOS 14.4.1
  • Numpy Version: 2.1.0, ProbNum Version: 0.1.16, Python Version: 3.12.4, Pip Version: 24.2
@williamlaplante williamlaplante added the bug Something isn't working label Aug 27, 2024
@github-staff github-staff deleted a comment from YeGop0218 Oct 28, 2024
@github-staff github-staff deleted a comment from YeGop0218 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant