-
Notifications
You must be signed in to change notification settings - Fork 372
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
Import problem with Numpy2.0.1 #281
Comments
got the same issue |
Same problem here with: Python 3.10.12 |
Fixed the Problem! Python 3.11.9 Go to C:\Users{YOUR-USER}\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pint\facets\numpy\numpy_func.py Replace line 884 with: |
It is fixed in more recent versions of pint [1]. |
Version Information
Problem Details
An error occurs when importing the obd module:
AttributeError: module 'numpy' has no attribute 'cumproduct'
Expected Behavior
The obd module should import without errors.
Actual Behavior
An AttributeError occurs, indicating that the cumproduct function does not exist in the current version of numpy.
When I use numpy==1.26.4, I can import obd because numpy has np.cumproduct.
You can replace np.cumproduct with np.cumprod.
The text was updated successfully, but these errors were encountered: