Bug 2341192

Summary: python-pypet: FTBFS in Fedora rawhide/f42
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: python-pypetAssignee: Orphan Owner <extras-orphan>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: code, ksurma, mhroncok, neuro-sig, orion, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-27 21:48:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2300528, 2322407    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2025-01-22 21:38:25 UTC
python-pypet failed to build from source in Fedora rawhide/f42

https://koji.fedoraproject.org/koji/taskinfo?taskID=128089520


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
Please fix python-pypet at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
python-pypet will be orphaned. Before branching of Fedora 43,
python-pypet will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2025-01-22 21:38:28 UTC
Created attachment 2072096 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2025-01-22 21:38:29 UTC
Created attachment 2072097 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2025-01-22 21:38:31 UTC
Created attachment 2072098 [details]
state.log

Comment 4 Orion Poplawski 2025-02-13 14:13:15 UTC
Check import: pypet
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 171, in <module>
    main()
    ~~~~^^
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 167, in main
    import_modules(modules)
    ~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 100, in import_modules
    importlib.import_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib64/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/builddir/build/BUILD/python-pypet-0.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/pypet/__init__.py", line 13, in <module>
    from pypet.environment import Environment, MultiprocContext
  File "/builddir/build/BUILD/python-pypet-0.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/pypet/environment.py", line 68, in <module>
    from pypet.pypetlogging import LoggingManager, HasLogger, simple_logging_config
  File "/builddir/build/BUILD/python-pypet-0.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/pypet/pypetlogging.py", line 27, in <module>
    import pypet.pypetconstants as pypetconstants
  File "/builddir/build/BUILD/python-pypet-0.6.1-build/BUILDROOT/usr/lib/python3.13/site-packages/pypet/pypetconstants.py", line 81, in <module>
    numpy.string_.__name__: numpy.string_,
    ^^^^^^^^^^^^^
  File "/usr/lib64/python3.13/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
    ...<3 lines>...
    )
AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.

Comment 5 Ben Beasley 2025-02-13 21:09:48 UTC
I talked about this a bit on Matrix when I was initially triaging NeuroFedora FTBFS bugs:

> I may be able to patch `python-pypet` for Numpy 2, but we have four open unreviewed PR’s upstream and the last commit was two years ago. I think the project is pining for the fjords.

> There are various removed-in-numpy-2 types exposed in `pypet.pypetconstants.PARAMETER_SUPPORTED_DATA`. It would not be too hard to fix them all, I think, but if there is no upstream left to review the change, I am not sure I want to propose a downstream patch.

Overall, I’m not planning to work on this due to the combination of an inactive upstream and numpy 2 changes affecting the API. I suppose it could still be saved if someone wants to try.

This does appear to be a leaf package.

Comment 6 Aoife Moloney 2025-02-26 13:43:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 7 Ankur Sinha (FranciscoD) 2025-04-14 13:49:16 UTC
I think it's time to let this one go. Removing neuro-sig and orphaning.

Comment 8 Sandro 2025-05-24 15:40:28 UTC
It seems the orphaning process has not reassigned this bug. Reassigning manually...

Comment 9 Miro Hrončok 2025-08-27 21:48:23 UTC
This was retired.