Package: python3-theano
Version: 1.0.5+dfsg-8
Severity: serious
Control: affects -1 deepnano
Control: found -1 1.1.2+dfsg-3

Dear maintainer(s),

I think the autopkgtest of deepnano points out that theano is using what I believe are removed attibutes from numpy.

Paul

https://ci.debian.net/data/autopkgtest/unstable/amd64/d/deepnano/32446139/log.gz

autopkgtest [19:57:01]: test run-test.sh: [-----------------------

#1 - deepnano_basecall
/usr/lib/python3/dist-packages/theano/scalar/basic.py:2412: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar.
  self.ctor = getattr(np, o_type.dtype)
Traceback (most recent call last):
  File "/usr/share/deepnano/basecall.py", line 4, in <module>
    from rnn_fin import RnnPredictor
  File "/usr/share/deepnano/rnn_fin.py", line 1, in <module>
    import theano as th
File "/usr/lib/python3/dist-packages/theano/__init__.py", line 83, in <module>
    from theano import scalar, tensor
File "/usr/lib/python3/dist-packages/theano/scalar/__init__.py", line 1, in <module>
    from .basic import *
File "/usr/lib/python3/dist-packages/theano/scalar/basic.py", line 2460, in <module>
    convert_to_bool = Cast(bool, name="convert_to_bool")
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/theano/scalar/basic.py", line 2412, in __init__
    self.ctor = getattr(np, o_type.dtype)
                ^^^^^^^^^^^^^^^^^^^^^^^^^
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_'?
autopkgtest [19:57:01]: test run-test.sh: -----------------------]

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to