Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRITICAL] No longer builds: Numpy 1 is deprecated #280

Closed
es20490446e opened this issue Jun 27, 2024 · 2 comments · Fixed by #281
Closed

[CRITICAL] No longer builds: Numpy 1 is deprecated #280

es20490446e opened this issue Jun 27, 2024 · 2 comments · Fixed by #281

Comments

@es20490446e
Copy link

Arch Linux now only features numpy 2.0.0.

And if you run friture on it:

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.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 "/usr/bin/friture", line 5, in <module>
    from friture.analyzer import main
  File "/usr/lib/python3.12/site-packages/friture/analyzer.py", line 43, in <module>
    from friture.dockmanager import DockManager
  File "/usr/lib/python3.12/site-packages/friture/dockmanager.py", line 25, in <module>
    from friture.dock import Dock
  File "/usr/lib/python3.12/site-packages/friture/dock.py", line 23, in <module>
    from friture.widgetdict import getWidgetById, widgetIds
  File "/usr/lib/python3.12/site-packages/friture/widgetdict.py", line 20, in <module>
    from friture.levels import Levels_Widget
  File "/usr/lib/python3.12/site-packages/friture/levels.py", line 32, in <module>
    from friture_extensions.exp_smoothing_conv import pyx_exp_smoothed_value
Unhandled exception: Traceback (most recent call last):
  File "/usr/bin/friture", line 5, in <module>
    from friture.analyzer import main
  File "/usr/lib/python3.12/site-packages/friture/analyzer.py", line 43, in <module>
    from friture.dockmanager import DockManager
  File "/usr/lib/python3.12/site-packages/friture/dockmanager.py", line 25, in <module>
    from friture.dock import Dock
  File "/usr/lib/python3.12/site-packages/friture/dock.py", line 23, in <module>
    from friture.widgetdict import getWidgetById, widgetIds
  File "/usr/lib/python3.12/site-packages/friture/widgetdict.py", line 20, in <module>
    from friture.levels import Levels_Widget
  File "/usr/lib/python3.12/site-packages/friture/levels.py", line 32, in <module>
    from friture_extensions.exp_smoothing_conv import pyx_exp_smoothed_value
  File "friture_extensions/exp_smoothing_conv.pyx", line 1, in init friture_extensions.exp_smoothing_conv
ImportError: numpy.core.multiarray failed to import (auto-generated because you didn't call 'numpy.import_array()' after cimporting numpy; use '<void>numpy._import_array' to disable if you are certain you don't need it).

kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Abort" msgid_plural: "" msgctxt: "@action:button"
@es20490446e
Copy link
Author

While this issue isn't solved, there is no sane way to package friture on Arch Linux.

The software simply doesn't work anymore.

@es20490446e es20490446e changed the title Fails to run: Numpy 2 is here! [CRITICAL] No longer builds: Numpy 1 is deprecated Jul 19, 2024
@tlecomte
Copy link
Owner

Thanks @es20490446e for pointing the compatibility issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants