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

[Discussion] distutils has been deprecated, what is the workaround? #916

Open
IJH91IJH91 opened this issue Nov 3, 2024 · 6 comments
Open
Labels
question Further information is requested

Comments

@IJH91IJH91
Copy link

ModuleNotFoundError: No module named 'distutils.msvccompiler'

How do we install Spleeter when it uses something that no longer exists?

@IJH91IJH91 IJH91IJH91 added the question Further information is requested label Nov 3, 2024
@cindehaa
Copy link

cindehaa commented Nov 6, 2024

Same issue

I solved this by downgrading Python to 3.8. It seemed like the issue was that spleeter requires numpy v1.18, which I believe requires python v3.9 or lower.

@linganmin
Copy link

Did you solve this problem? I also encountered this problem.

@parthpandey1
Copy link

Getting the following error while installing spleeter using pip.
Screenshot 2024-11-30 at 2 59 39 AM

I am using python 3.9. Initially I used 3.13 and then tried to install python 3.8 as recommended by @cindehaa but it has been deprecated upstream. Hence settled for 3.9. I've also tried a bunch of solutions on the internet like installing setuptools (https://stackoverflow.com/questions/69919970/no-module-named-distutils-util-but-distutils-installed) but I'm still getting the same error.

Any help or guidance would be appreciated.

System: M2 macbook air, MacOS 15.1

@ci21-cgarijo
Copy link

Having same issue here:
image

I tried installing setuptools as specified here and manually installing distutils with:
sudo apt-get install --reinstall python3.11-distutils (working with Python 3.11) but none worked.

Would love to hear some news on this problem.

System: Ubuntu 22.04.5 LTS.

Thanks!!

@chillwapman
Copy link

chillwapman commented Dec 21, 2024

I'm having this problem.

UPDATE:

Solved by installing python 3.8.0 and uninstallying numpy. Performing pip install spleeter then automatically adds the depencies

@mytait
Copy link

mytait commented Dec 27, 2024

same problem.

solved:
by using python 3.10 and putting this in the requirements file:

numpy<2
spleeter

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

No branches or pull requests

7 participants