Bug 2333015

Summary: aubio needs to be rebuilt against NumPy 2.x
Product: [Fedora] Fedora Reporter: Sandro <gui1ty>
Component: aubioAssignee: Guido Aulisi <guido.aulisi>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: green, guido.aulisi, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: aubio-0.4.9-25.fc42 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-12-21 05:40:49 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: 2332159    

Description Sandro 2024-12-18 14:11:14 UTC
Currently, importing aubio results in:

>>> import aubio

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib64/python3.13/_pyrepl/__main__.py", line 6, in <module>
    __pyrepl_interactive_console()
  File "/usr/lib64/python3.13/_pyrepl/main.py", line 59, in interactive_console
    run_multiline_interactive_console(console)
  File "/usr/lib64/python3.13/_pyrepl/simple_interact.py", line 160, in run_multiline_interactive_console
    more = console.push(_strip_final_indent(statement), filename=input_name, _symbol="single")  # type: ignore[call-arg]
  File "/usr/lib64/python3.13/code.py", line 314, in push
    more = self.runsource(source, filename, symbol=_symbol)
  File "/usr/lib64/python3.13/_pyrepl/console.py", line 211, in runsource
    self.runcode(code)
  File "/usr/lib64/python3.13/code.py", line 92, in runcode
    exec(code, self.locals)
  File "<python-input-0>", line 1, in <module>
    import aubio
  File "/usr/lib64/python3.13/site-packages/aubio/__init__.py", line 25, in <module>
    from ._aubio import __version__ as version
Unable to import Numpy array from aubio module (error -1)
Unable to import Numpy umath from aubio module (error -1)
Segmentation fault (core dumped)

A simple bump and rebuild should fix that.

Reproducible: Always

Comment 1 Fedora Update System 2024-12-21 05:36:58 UTC
FEDORA-2024-2b15d1a3fd (aubio-0.4.9-25.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2b15d1a3fd

Comment 2 Fedora Update System 2024-12-21 05:40:49 UTC
FEDORA-2024-2b15d1a3fd (aubio-0.4.9-25.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.