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

wrong dependency in "quantumaudio[demos]" for librosa / numba for python==3.12 #39

Open
thomasehmer opened this issue Nov 21, 2024 · 1 comment
Assignees

Comments

@thomasehmer
Copy link

Hello, I see that you recommend Python 3.10 in the ENVIRONMENT.md - so this is only for information as it should likely work with 3.10. (while see error description below)

Just a hint, in case you need it later or want to add it in the dependencies.

When I install "quantumaudio[demos]" (or librosa for that matter) and using Python 3.12.7, I do get an error telling that the numba==0.53.1 dependency cannot be installed.

The way to fix it is to install numba without the version (or numba==0.59) first
I am using rye add numba / rye sync - but I guess it works with pip, too.

I am not sure where this can be fixed in the dependencies?

error: Failed to prepare distributions
Caused by: Failed to download and build numba==0.53.1
Caused by: Build backend failed to determine requirements with build_wheel() (exit status: 1)

[stderr]
Traceback (most recent call last):
[...] Installing dependencies
Resolved 135 packages in 11ms
error: Failed to prepare distributions
Caused by: Failed to download and build numba==0.53.1
Caused by: Build backend failed to determine requirements with build_wheel() (exit status: 1)

[ ... ]
run_setup
exec(code, locals())
File "", line 50, in
File "", line 47, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.12.7; only versions >=3.6,<3.10 are supported.
error: Installation of dependencies failed in venv at /Users/thomasehmer/Desktop/Code/moth/.venv. uv exited with status: exit status: 2

@stringtherapy
Copy link
Collaborator

Thank you for taking the time to report this issue! I created a new conda environment to install quantumaudio[demos] and tested this. However, I wasn’t able to recreate the issue.

I have the following setup:

Python: 3.12.7
pip: 24.2
librosa: 0.10.2.post1
numpy: 2.0.2
numba: 0.60.0

I’ll investigate further to see if there are any cases or specific conditions causing this. It’s likely related to the downgrading of version requirements in librosa, as you correctly pointed out.

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

No branches or pull requests

4 participants