You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing adopy, I attempt to load the module but I get the following error: AttributeError: module 'numpy' has no attribute 'int'. 'np.int' was a deprecated alias for the builtin 'int'. To avoid this error in existing code, use 'int' by itself. Doing this will not modify any behavior and is safe. When replacing 'np.int', you may wish to use e.g. 'np.int64' or 'np.int32' to specify the precision. If you wish to review your current use, check the release note link for additional information.
After installing adopy, I attempt to load the module but I get the following error:
AttributeError: module 'numpy' has no attribute 'int'. 'np.int' was a deprecated alias for the builtin 'int'. To avoid this error in existing code, use 'int' by itself. Doing this will not modify any behavior and is safe. When replacing 'np.int', you may wish to use e.g. 'np.int64' or 'np.int32' to specify the precision. If you wish to review your current use, check the release note link for additional information.
I found a solution online to change the code in
~/opt/miniconda/envs/adopy/lib/python3.9/site-packages/adopy/types.py
fromnp.int
tonp.int_
andnp.float
tonp.float_
Potential solution: https://stackoverflow.com/questions/74946845/attributeerror-module-numpy-has-no-attribute-int
The text was updated successfully, but these errors were encountered: