Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Mar 2024 02:35:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277495] math/py-theano out of date wrt numpy
Message-ID:  <bug-277495-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277495

            Bug ID: 277495
           Summary: math/py-theano out of date wrt numpy
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: demon@FreeBSD.org
          Reporter: billblake2018@gmail.com
             Flags: maintainer-feedback?(demon@FreeBSD.org)
          Assignee: demon@FreeBSD.org

I wanted to use the Theano python package so I attempted to install it.  Th=
at
worked.  Then I tried to use it and got this:

/usr/local/lib/python3.9/site-packages/theano/scalar/basic.py:2323:
FutureWarning: In the future `np.bool` will be defined as the corresponding
NumPy scalar.
  self.ctor =3D getattr(np, o_type.dtype)
Traceback (most recent call last):
  File "/home/user/proj/ai/nndp3/test.py", line 156, in <module>
    import network3
  File "/home/user/proj/ai/nndp3/network3.py", line 37, in <module>
    import theano
  File "/usr/local/lib/python3.9/site-packages/theano/__init__.py", line 12=
4,
in <module>
    from theano.scan_module import (scan, map, reduce, foldl, foldr, clone,
  File "/usr/local/lib/python3.9/site-packages/theano/scan_module/__init__.=
py",
line 41, in <module>
    from theano.scan_module import scan_opt
  File "/usr/local/lib/python3.9/site-packages/theano/scan_module/scan_opt.=
py",
line 60, in <module>
    from theano import tensor, scalar
  File "/usr/local/lib/python3.9/site-packages/theano/tensor/__init__.py", =
line
8, in <module>
    from theano.tensor.basic import *
  File "/usr/local/lib/python3.9/site-packages/theano/tensor/basic.py", line
20, in <module>
    from theano.scalar import int32 as int32_t
  File "/usr/local/lib/python3.9/site-packages/theano/scalar/__init__.py", =
line
3, in <module>
    from .basic import *
  File "/usr/local/lib/python3.9/site-packages/theano/scalar/basic.py", line
2370, in <module>
    convert_to_bool =3D Cast(bool, name=3D'convert_to_bool')
  File "/usr/local/lib/python3.9/site-packages/theano/scalar/basic.py", line
2323, in __init__
    self.ctor =3D getattr(np, o_type.dtype)
  File "/usr/local/lib/python3.9/site-packages/numpy/__init__.py", line 313=
, 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 erro=
r 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

Not being a python coder, I'm not sure of the real source of this message, =
but
it apparently will happen any time the Theano package is imported, making t=
hat
package useless.

This happened with the Theano package and port, both with files fetched tod=
ay.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277495-7788>