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

AttributeError: module 'numpy' has no attribute 'object'. np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe. #999

Open
chilljudaoren opened this issue Jun 14, 2024 · 3 comments

Comments

@chilljudaoren
Copy link

File "/home/czh/.conda/envs/czh/lib/python3.9/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'object'.
np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe.
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

@chilljudaoren
Copy link
Author

python==3.9
Name: numpy
Version: 1.26.4

@Avasam
Copy link

Avasam commented Aug 1, 2024

@chilljudaoren you didn't include your opencv-python version nor a minimal code reproduction.

@chilljudaoren
Copy link
Author

chilljudaoren commented Aug 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants