From nobody Tue Mar 5 02:35:20 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tpfmm5n5xz5BXl1 for ; Tue, 5 Mar 2024 02:35:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tpfmm4KtMz4cQb for ; Tue, 5 Mar 2024 02:35:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709606120; a=rsa-sha256; cv=none; b=H1MDrFFKmTSrVIbthfrLhQWtddXgLPOEVjcvxu8kdeUPk/oob4o49vvr4VI4I1Bb7Rd5nq nMEqSD1tCJn7ZteUsiwvoBPmxJxTJrudkybihlgWO7wGAs9a7pVksxhup6ndSg8MuZHT/5 yr7eJ4KM+qu64FSxs1+dWdlUbw+EXUIa/qXzVHtaIlN1zV4iHu+hsQu7sAtWmSb+nM34e+ c1ZNLSeCdDRoYfIp6NKZY2IeeFhwUb5dtCHinAgJiIcJTTdJ8sEmaFjH9M5tc5Wk78avWu Kxy0+WhJCFA4IYLxDS18Khv8c0ZzcsBUU4hrMNf5YH3mEOmV6NOS5c+K5DAQyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709606120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1pZLrwIzTisje7kuCdJCM+vFD0pINzVrxVYxU2iPyv4=; b=a0Y60M0WoEj7SL13YMyOtNGBwYGlzXbNOXxHgLs6rKR2OjvaQ83K5S4P82jW/w5pXr83Ft cz/s7mUIQfscAk+2Co/RN0veURjGyC7B45qKWzoOSdp9XzSsX7d8/fKsCZXLB2ckZ/IZjW O94ZH9s0fuFkFB2yOPXUE9it/JzM5b57m6twQ5wvwg6RPUAt83SqDisMHmcV6NQgFhuOs0 wG1jH7Wia90nXpyzKe/7BFl/18yRnFi0V4WJIoUxbtQOzVydsyO3uz6DEbpWb6TQPoLs7d iKLeYQoIRP+PDdDq4m81ZvQMLoaYC+RBTrrNjJ6+Gz3QdosPYE4/9KT2C374Yw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tpfmm3wSvznJZ for ; Tue, 5 Mar 2024 02:35:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4252ZKHV000725 for ; Tue, 5 Mar 2024 02:35:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4252ZKJH000723 for ports-bugs@FreeBSD.org; Tue, 5 Mar 2024 02:35:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277495] math/py-theano out of date wrt numpy Date: Tue, 05 Mar 2024 02:35:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: billblake2018@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: demon@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 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 import network3 File "/home/user/proj/ai/nndp3/network3.py", line 37, in import theano File "/usr/local/lib/python3.9/site-packages/theano/__init__.py", line 12= 4, in 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 from theano.scan_module import scan_opt File "/usr/local/lib/python3.9/site-packages/theano/scan_module/scan_opt.= py", line 60, in from theano import tensor, scalar File "/usr/local/lib/python3.9/site-packages/theano/tensor/__init__.py", = line 8, in from theano.tensor.basic import * File "/usr/local/lib/python3.9/site-packages/theano/tensor/basic.py", line 20, in from theano.scalar import int32 as int32_t File "/usr/local/lib/python3.9/site-packages/theano/scalar/__init__.py", = line 3, in from .basic import * File "/usr/local/lib/python3.9/site-packages/theano/scalar/basic.py", line 2370, in 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.=