Comment 0 for bug 2004166

Revision history for this message
Olivier Gayot (ogayot) wrote :

tpot fails its autopkgtest suite when run against numpy 1.24+

  File "/usr/lib/python3/dist-packages/tpot/builtins/one_hot_encoder.py", line 216, in OneHotEncoder
    def __init__(self, categorical_features='auto', dtype=np.float,
                                                          ^^^^^^^^
  File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'float'

A fix [1] was merged in Debian but there is no upload yet.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027205