Torch issue after updating #22

Closed
opened 2023-02-11 20:59:07 +00:00 by bashkir3230 · 6 comments

I haven't been able to run any version since updating - my best guess is an issue with Torch, because that continues to throw errors, as below. I have attempted numerous times to delete, reinstall python, torch, or tortoise, to no effect.

.\tortoise-venv\Scripts\activate.bat
Requirement already satisfied: pip in c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages (23.0)
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
Requirement already satisfied: tqdm in c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\tqdm-4.64.1-py3.11.egg (from -r ./requirements.txt (line 1)) (4.64.1)

I haven't been able to run any version since updating - my best guess is an issue with Torch, because that continues to throw errors, as below. I have attempted numerous times to delete, reinstall python, torch, or tortoise, to no effect. .\tortoise-venv\Scripts\activate.bat Requirement already satisfied: pip in c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages (23.0) Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116 ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch Requirement already satisfied: tqdm in c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\tqdm-4.64.1-py3.11.egg (from -r ./requirements.txt (line 1)) (4.64.1)
Owner

c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\tqdm-4.64.1-py3.11.egg

py3.11

Use Python3.9.

> c:\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\tqdm-4.64.1-py3.11.egg > py3.11 Use Python3.9.
Author

Re-installed.. this is the hangup now:

(base) C:\Users\miniconda3\tortoise-tts>start.bat

(base) C:\Users\miniconda3\tortoise-tts>call .\tortoise-venv\Scripts\activate.bat
C:\Users\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\torchaudio_internal\module_utils.py:99: UserWarning: Failed to import soundfile. 'soundfile' backend is not available.
warnings.warn("Failed to import soundfile. 'soundfile' backend is not available.")
Traceback (most recent call last):
File "C:\Users\miniconda3\tortoise-tts\main.py", line 1, in
import webui as mrq
File "C:\Users\miniconda3\tortoise-tts\webui.py", line 11, in
import music_tag
ModuleNotFoundError: No module named 'music_tag'
(base) C:\Users\miniconda3\tortoise-tts>

Re-installed.. this is the hangup now: (base) C:\Users\\miniconda3\tortoise-tts>start.bat (base) C:\Users\\miniconda3\tortoise-tts>call .\tortoise-venv\Scripts\activate.bat C:\Users\\miniconda3\tortoise-tts\tortoise-venv\lib\site-packages\torchaudio\_internal\module_utils.py:99: UserWarning: Failed to import soundfile. 'soundfile' backend is not available. warnings.warn("Failed to import soundfile. 'soundfile' backend is not available.") Traceback (most recent call last): File "C:\Users\\miniconda3\tortoise-tts\main.py", line 1, in <module> import webui as mrq File "C:\Users\\miniconda3\tortoise-tts\webui.py", line 11, in <module> import music_tag ModuleNotFoundError: No module named 'music_tag' (base) C:\Users\\miniconda3\tortoise-tts>
Owner

Try this then: https://stackoverflow.com/a/68976159.

Aside from that, the only things I can suggest is to explicitly use the python download in my README, and not miniconda.

Try this then: https://stackoverflow.com/a/68976159. Aside from that, the only things I can suggest is to explicitly use the python download in my README, and not miniconda.
Author

Thank you!

Anyone else who gets this error;

Uninstall any other Python program, reboot, run the installation per the rentry
No idea why this had me running in circles as long as it did

Thank you! Anyone else who gets this error; Uninstall any other Python program, reboot, run the installation per the [rentry](https://rentry.org/AI-Voice-Cloning/) No idea why this had me running in circles as long as it did
Owner

No worries.

I didn't think to stress it hard enough in the README/rentry, since when I was suggesting using conda to setup for ease of use, I didn't seem to stumble upon any problems with it using python3.10 (or was it 3.11), somehow.

The influx of "this problem is fixed by using vanilla 3.9" leaves me no choice but try and emphasize to use python3.9 under Windows. Updated the README/rentry to (hopefully) stress it enough without being an angry autist over it.

No worries. I didn't think to stress it hard enough in the README/rentry, since when I was suggesting using conda to setup for ease of use, I didn't seem to stumble upon any problems with it using python3.10 (or was it 3.11), somehow. The influx of "this problem is fixed by using vanilla 3.9" leaves me no choice but try and emphasize to use python3.9 under Windows. Updated the README/rentry to (hopefully) stress it enough without being an angry autist over it.
mrq closed this issue 2023-02-12 04:39:32 +00:00
Author

Yep, I think I was running into problems because I also run Stable Diffusion (via the AutoInstaller) which also uses Torch, and downloads Python 3.10

Yep, I think I was running into problems because I also run Stable Diffusion (via the AutoInstaller) which also uses Torch, and downloads Python 3.10
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/tortoise-tts#22
No description provided.