Skip to content

open_images_downloader.py fails with numpy 1.24.4 #1936

@scrocker-amp

Description

@scrocker-amp

The image downloader script for training fails with numpy 1.24.4:

File "open_images_downloader.py", line 12, in
import pandas as pd
File "/usr/lib/python3/dist-packages/pandas/init.py", line 182, in
import pandas.testing
File "/usr/lib/python3/dist-packages/pandas/testing.py", line 7, in
from pandas.util.testing import (
File "/usr/lib/python3/dist-packages/pandas/util/testing.py", line 28, in
import pandas._libs.testing as _testing
File "pandas/_libs/testing.pyx", line 10, in init pandas._libs.testing
File "/home/user/.local/lib/python3.8/site-packages/numpy/init.py", line 3 05, 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 guidan ce see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

A temporary solution is to install numpy==1.20.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions