Bug#1031832: python3-vispy: import fails: AttributeError: module 'numpy' has no attribute 'bool'
s3v
c0llapsed at yahoo.it
Thu Feb 23 20:02:58 GMT 2023
Package: python3-vispy
Severity: serious
Dear Maintainer,
This import fails in a Sid chroot:
>>> from vispy.plot import Fig
/usr/lib/python3/dist-packages/vispy/gloo/program.py:113: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
'bvec2': (np.bool, 2),
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/vispy/plot/__init__.py", line 34, in <module>
from .fig import Fig # noqa
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vispy/plot/fig.py", line 5, in <module>
from ..scene import SceneCanvas
File "/usr/lib/python3/dist-packages/vispy/scene/__init__.py", line 33, in <module>
from .visuals import * # noqa
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vispy/scene/visuals.py", line 18, in <module>
from .. import visuals
File "/usr/lib/python3/dist-packages/vispy/visuals/__init__.py", line 14, in <module>
from .axis import AxisVisual # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vispy/visuals/axis.py", line 11, in <module>
from .visual import CompoundVisual
File "/usr/lib/python3/dist-packages/vispy/visuals/visual.py", line 90, in <module>
from .. import gloo
File "/usr/lib/python3/dist-packages/vispy/gloo/__init__.py", line 54, in <module>
from .program import Program # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vispy/gloo/program.py", line 74, in <module>
class Program(GLObject):
File "/usr/lib/python3/dist-packages/vispy/gloo/program.py", line 113, in Program
'bvec2': (np.bool, 2),
^^^^^^^
File "/usr/lib/python3/dist-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. Did you mean: 'bool_'?
Kind Regards
More information about the debian-science-maintainers
mailing list