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

numpy 1.20 bool deprecation #829

Open
marcown opened this issue Feb 12, 2023 · 1 comment · May be fixed by #832
Open

numpy 1.20 bool deprecation #829

marcown opened this issue Feb 12, 2023 · 1 comment · May be fixed by #832

Comments

@marcown
Copy link

marcown commented Feb 12, 2023

Hi,

I get the following error:

  File "/home/markus/.local/lib/python3.10/site-packages/imgaug/augmenters/meta.py", line 3368, in _get_augmenter_active
    augmenter_active = np.zeros((nb_rows, len(self)), dtype=np.bool)
  File "/home/markus/.local/lib/python3.10/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])

AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
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

Any plan to fix this, or am I missing something?

@marcown
Copy link
Author

marcown commented Feb 13, 2023

if you have the same problem:

Fixed fork

@AlexanderRagnarsson AlexanderRagnarsson linked a pull request Apr 13, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant