Bug 2341192 - python-pypet: FTBFS in Fedora rawhide/f42
Summary: python-pypet: FTBFS in Fedora rawhide/f42
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pypet
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F42FTBFS
TreeView+ depends on / blocked
 
Reported: 2025-01-22 21:38 UTC by Fedora Release Engineering
Modified: 2025-04-14 13:49 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2025-01-22 21:38 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2025-01-22 21:38 UTC, Fedora Release Engineering
no flags Details
state.log (1.66 KB, text/plain)
2025-01-22 21:38 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github SmokinCaterpillar pypet issues 74 0 None open Numpy 2.X support 2025-02-13 14:13:14 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.