autopkgtest fail with numpy/1.24.1

Bug #2004166 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tpot (Debian)
New
Unknown
tpot (Ubuntu)
New
Undecided
Unassigned

Bug Description

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'

numpy.float was removed [2] from numpy 1.24

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

[1] https://salsa.debian.org/science-team/tpot/-/commit/b7989129ccecae0b9cff9a3fa5b863a0d551815e
[2] https://numpy.org/doc/stable/release/1.24.0-notes.html#expired-deprecations

Olivier Gayot (ogayot)
tags: added: update-excuse
Olivier Gayot (ogayot)
description: updated
Changed in tpot (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.