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

NOTHING IS WORKING! ALL NOTEBOOKS ARE BROKEN! INSTALLATION ON COLLAB IS NOT POSSIBLE! #2444

Open
yukiarimo opened this issue Jan 18, 2025 · 8 comments

Comments

@yukiarimo
Copy link

Hello. Try to run your collab notebook in the repo or any other on the internet! None of them work. Error after error! It is not fixable! Please fix! It is not possible to even install RVC, as all packages conflict and do not install! Please fix!

@cahayamahardika16
Copy link

Yeah me too. But how can not do something train this voice model RVC they all notebooks is are broken.

@EhsanHejazi
Copy link

Exactly, me too.

@lsm910809
Copy link

The thing is that Colab has been updated to use Python 3.11, which broke the compatibility with many existing packages detailed in requirements.txt

@yukiarimo
Copy link
Author

I see. Is it possible to downgrade the Python version in Colab, and if so, how and to what version should I downgrade it to?

@lsm910809
Copy link

lsm910809 commented Jan 20, 2025

Preferably to 3.8, which is the supported version of RVC.
However, when I was trying to downgrade myself, it failed.
If I do manage to do this later, I'll share what I did.

@lsm910809
Copy link

lsm910809 commented Jan 20, 2025

First, correction: I was supposed to use Python 3.10 not 3.8

This is NOT a long-term solution, but I may have found some workarounds of using different python version in the notebook.

First, add and run this code at the beginning of your notebook to install python 3.10.

!sudo apt-get update
!sudo apt-get install python3.10 python3.10-distutils python3.10-venv
!wget https://bootstrap.pypa.io/get-pip.py
!/usr/bin/python3.10 get-pip.py

After this, you have to replace every pip and python command in your notebook code to !/usr/bin/python3.10.
If you just use pip and python, colab will just use the latest installed python (3.11 at the moment)

Example (this is my code, but you should make your own adjustments)

old : !pip install -r requirements.txt
new : !/usr/bin/python3.10 -m pip install -r requirements.txt

old : !python infer-web.py --colab --pycmd python3
new : !/usr/bin/python3.10 infer-web.py --colab --pycmd /usr/bin/python3.10

@yukiarimo
Copy link
Author

Thanks, I’ll try it out later!

@lsm910809
Copy link

Good luck!
Well, I did get mine running, so I think it can work. :-)
Image

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