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

[Bug]: Unable to download Librosa on python 3.13.0 due to Numba support issue #1883

Open
cdbruyla opened this issue Oct 30, 2024 · 3 comments

Comments

@cdbruyla
Copy link

Bug summary

Numba does not support 3.13.0 as of yet. Given Librosa depends on Numba, Librosa can't be installed on python 3.13.0 (only tried with pip).
This issue is also being tracked in the Numba repo: numba/numba#9413

Code for reproduction

pip install librosa

Actual outcome

Defaulting to user installation because normal site-packages is not writeable
Collecting librosa
Using cached librosa-0.10.2.post1-py3-none-any.whl.metadata (8.6 kB)
Collecting audioread>=2.1.9 (from librosa)
Using cached audioread-3.0.1-py3-none-any.whl.metadata (8.4 kB)
Requirement already satisfied: numpy!=1.22.0,!=1.22.1,!=1.22.2,>=1.20.3 in ./.local/lib/python3.13/site-packages (from librosa) (2.1.2)
Requirement already satisfied: scipy>=1.2.0 in ./.local/lib/python3.13/site-packages (from librosa) (1.14.1)
Requirement already satisfied: scikit-learn>=0.20.0 in ./.local/lib/python3.13/site-packages (from librosa) (1.5.2)
Requirement already satisfied: joblib>=0.14 in ./.local/lib/python3.13/site-packages (from librosa) (1.4.2)
Requirement already satisfied: decorator>=4.3.0 in ./.local/lib/python3.13/site-packages (from librosa) (5.1.1)
Collecting numba>=0.51.0 (from librosa)
Using cached numba-0.60.0.tar.gz (2.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [24 lines of output]
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
~~~~^^
File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-vpmi0jy6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-vpmi0jy6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 303, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-vpmi0jy6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 521, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-vpmi0jy6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 319, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 51, in
File "", line 48, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.13.0; only versions >=3.9,<3.13 are supported.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Expected outcome

Should install Librosa

Additional information

No response

Operating system

Fedora 41

software versions

  • prinLinux-6.11.4-201.fc40.x86_64-x86_64-with-glibc2.40
  • Python 3.13.0 (main, Oct 8 2024, 00:00:00) [GCC 14.2.1 20240912 (Red Hat 14.2.1-3)]
  • NumPy 2.1.2
  • SciPy 1.14.1
  • Librosa N.A.

Installation

pip

@bmcfee
Copy link
Member

bmcfee commented Nov 4, 2024

There's nothing we can do about this until numba gets an update. However, we don't currently claim to support 3.13, so I don't think it's accurate to call this a bug:

librosa/setup.cfg

Lines 46 to 60 in d5aa7e1

classifiers =
License :: OSI Approved :: ISC License (ISCL)
Programming Language :: Python
Development Status :: 3 - Alpha
Intended Audience :: Developers
Topic :: Multimedia :: Sound/Audio :: Analysis
Framework :: Matplotlib
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12

I'll leave this open so we can keep tabs on it and update when numba does though.

@cdbruyla
Copy link
Author

cdbruyla commented Nov 5, 2024

Hi @bmcfee, absolutely fair response, I did not check if you were supposed to support 3.13 by now 🙃

Fair enough - thanks!

@SonuKumar145
Copy link

thanks for reporting the issue. i was so confused why it was not getting installed

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

No branches or pull requests

3 participants