Replies: 1 comment 1 reply
-
As far as I can tell this error is coming from a package we don't maintain (PyTim). The solution is likely to use a version of NumPy compatible with that package and/or to ask the maintainer to modernize their code so they don't use deprecated NumPy type aliases. >>> import numpy as np
>>> arr = np.array([0, 0], dtype=np.int)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/treddy/python_venvs/py_311_scipy_dev/lib/python3.11/site-packages/numpy/__init__.py", line 324, in __getattr__
raise AttributeError(__former_attrs__[attr])
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.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'inf'? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am learning the mdanalysis. I was trying to find out the true interface of the liquid/vapor interface in my system using Pytim modules, but I am getting an error like below
Please tell me how I can fix it.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions