Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936525 - games-simulation/singularity-1.00-r2 fails tests: FAILED test_game_run.py::test_initial_game - AttributeError: np.cast was removed in the NumPy 2.0 release Use np.asarray(arr, dtype=dtype) instead
Summary: games-simulation/singularity-1.00-r2 fails tests: FAILED test_game_run.py::te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PATCH, TESTFAILURE
Depends on:
Blocks: 930951
  Show dependency tree
 
Reported: 2024-07-23 07:14 UTC by Agostino Sarubbo
Modified: 2025-04-16 10:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,237.20 KB, text/plain)
2024-07-23 07:14 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-07-23 07:14:52 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-simulation/singularity-1.00-r2 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-07-23 07:14:54 UTC
Created attachment 898171 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-07-23 07:14:54 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E           AttributeError: `np.cast` was removed in the NumPy 2.0 release. Use `np.asarray(arr, dtype=dtype)` instead.
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
FAILED tests/test_game_run.py::test_game_research_tech - AttributeError: `np.cast` was removed in the NumPy 2.0 release. Use `np.asarray(arr, dtype=dtype)` instead.
FAILED tests/test_game_run.py::test_initial_game - AttributeError: `np.cast` was removed in the NumPy 2.0 release. Use `np.asarray(arr, dtype=dtype)` instead.
tests/test_game_run.py::test_game_research_tech FAILED                  [ 2/31]
tests/test_game_run.py::test_initial_game FAILED                        [ 1/31]
Comment 3 Nick Owens 2024-12-15 19:13:54 UTC
i believe this is fixed by the upstream change https://github.com/singularity/singularity/commit/57013b621d641ae9b0b2554918807a88b7727b87
Comment 4 Larry the Git Cow gentoo-dev 2025-04-16 10:59:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1e876fd7430f29c34a98ccb61d5ad8b6543121c

commit e1e876fd7430f29c34a98ccb61d5ad8b6543121c
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2025-04-16 08:11:55 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2025-04-16 10:56:40 +0000

    games-simulation/singularity: backport numpy2 fix
    
    Closes: https://bugs.gentoo.org/936525
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../singularity/files/singularity-1.00-numpy2.patch            | 10 ++++++++++
 .../{singularity-1.00-r2.ebuild => singularity-1.00-r3.ebuild} |  6 +++++-
 2 files changed, 15 insertions(+), 1 deletion(-)