Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 936525

Summary: 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
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: mischief
Priority: Normal Keywords: PATCH, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/singularity/singularity/issues/346
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 930951    
Attachments: build.log

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