Even after running setup-cuda, the start.bat shows missing modules. #217

Closed
opened 2023-04-27 09:00:29 +00:00 by dennisbgi7 · 6 comments

It starts with "ModuleNotFoundError: No module named 'psutil'". After that even I activate the venv seperately and pip install the modules one after the other, it eventually gets stuck on some particular module. Something wrong with the setup-cuda.bat file?

It starts with "ModuleNotFoundError: No module named 'psutil'". After that even I activate the venv seperately and pip install the modules one after the other, it eventually gets stuck on some particular module. Something wrong with the setup-cuda.bat file?

just keep running pip install (name of module), ex: pip install psutil till they are all installed. Will run fine after everything is installed :)

just keep running pip install (name of module), ex: `pip install psutil` till they are all installed. Will run fine after everything is installed :)
Author

just keep running pip install (name of module), ex: pip install psutil till they are all installed. Will run fine after everything is installed :)

Doesn't work, eventually gets stuck on tortoise, since pip install won't solve it. The error comes up as follows:

Traceback (most recent call last):
  File "G:\Tortoise fork\ai-voice-cloning\src\main.py", line 11, in <module>
    from utils import *
  File "G:\Tortoise fork\ai-voice-cloning\src\utils.py", line 40, in <module>
    from tortoise.api import TextToSpeech as TorToise_TTS, MODELS, get_model_path, pad_or_truncate
ModuleNotFoundError: No module named 'tortoise'
Press any key to continue . . .
> just keep running pip install (name of module), ex: `pip install psutil` till they are all installed. Will run fine after everything is installed :) Doesn't work, eventually gets stuck on tortoise, since pip install won't solve it. The error comes up as follows: ``` Traceback (most recent call last): File "G:\Tortoise fork\ai-voice-cloning\src\main.py", line 11, in <module> from utils import * File "G:\Tortoise fork\ai-voice-cloning\src\utils.py", line 40, in <module> from tortoise.api import TextToSpeech as TorToise_TTS, MODELS, get_model_path, pad_or_truncate ModuleNotFoundError: No module named 'tortoise' Press any key to continue . . . ```
Owner

I feel like I managed to mess up a working environment ages ago where it wasn't actually installing the packages to the venv. Whenever I get the chance I'll validate that the procedure still works.

Specifically for tortoise, run:

call .\venv\Scripts\activate.bat
python -m pip install -e .\modules\tortoise-tts\
I *feel* like I managed to mess up a working environment ages ago where it wasn't actually installing the packages to the venv. Whenever I get the chance I'll validate that the procedure still works. Specifically for tortoise, run: ``` call .\venv\Scripts\activate.bat python -m pip install -e .\modules\tortoise-tts\ ```
Owner

No issues for me running the install .bat on Win10 + python3.10.

The only issue I can think of is if you're using PowerShell, as the venv activation script (.\venv\Scripts\activate.bat) does NOT work under PowerShell; you'll need to adapt it to use .\venv\Scripts\Activate.ps1, but I think in that case it will still install packages to your global Python environment and still work.

No issues for me running the install .bat on Win10 + python3.10. The only issue I can think of is if you're using PowerShell, as the venv activation script (`.\venv\Scripts\activate.bat`) does NOT work under PowerShell; you'll need to adapt it to use `.\venv\Scripts\Activate.ps1`, but I think in that case it will still install packages to your global Python environment and still work.
Author

I feel like I managed to mess up a working environment ages ago where it wasn't actually installing the packages to the venv. Whenever I get the chance I'll validate that the procedure still works.

Specifically for tortoise, run:

call .\venv\Scripts\activate.bat
python -m pip install -e .\modules\tortoise-tts\

Thanks, this worked.

> I *feel* like I managed to mess up a working environment ages ago where it wasn't actually installing the packages to the venv. Whenever I get the chance I'll validate that the procedure still works. > > Specifically for tortoise, run: > ``` > call .\venv\Scripts\activate.bat > python -m pip install -e .\modules\tortoise-tts\ > ``` Thanks, this worked.

pls help
image

pls help ![image](/attachments/15df48e3-bbb4-4344-9772-6f6d16a79ea3)
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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/ai-voice-cloning#217
No description provided.