ModuleNotFoundError: No module named 'tortoise' #256
Labels
No Label
bug
duplicate
enhancement
help wanted
insufficient info
invalid
news
not a bug
question
wontfix
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: mrq/ai-voice-cloning#256
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
My steps leading up to this error:
I have no idea what to do, I believe I followed all the steps correctly, then again, I have not the slightest clue about anything coding or computer related. If any more info is needed, I can try and give it to the best of my ability.
More code from command prompt just incase it is necessary.
C:\Users\Topha\Music\ai\Tortoise TTS\ai-voice-cloning>call .\venv\Scripts\activate.bat
Traceback (most recent call last):
File "C:\Users\Topha\Music\ai\Tortoise TTS\ai-voice-cloning\src\main.py", line 11, in
from utils import *
File "C:\Users\Topha\Music\ai\Tortoise TTS\ai-voice-cloning\src\utils.py", line 40, in
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 . . .
Try
git submodule update --remote
I got another error:
fatal: not a git repository (or any of the parent directories): .git
I just opened the command prompt and entered that in so maybe I did it wrong, but I would not know cus I know nothing about coding.
I tried "update.bat" then tried "start.bat" again, only to get the exact same error. DX
You'd need to do it in the directory where you cloned the repo, preferably after activating the venv.
The directory? Cloned the repo? After activating the venv? Uhhhhh.... I dont remember cloning anything. And idk what a venv is, sorry. I only followed the simple instructions for this, and even then, I struggled. Consider me a complete beginner when it comes to this stuff lol.
You did
git clone https://git.ecker.tech/mrq/ai-voice-cloning
right? Go into the directory "ai-voice-cloning" (unless you named it something else), and run.\venv\scripts\Activate
. Thengit submodule update --remote
like this:I don't really understand what that image even is trying to convey to be honest with you, so I just went to the "ai-voice-cloning" directory (which I just found out is another word for folder, did not even know that), typed "cmd" in the file path (coincidently learned that small trick from a youtube video I stumbled upon), then copy and pasted "
.\venv\scripts\Activate
" then "git submodule update --remote
". The result? The exact same error from the beginning. So I must've done something wrong.I tried doing whatever you did on powershell because maybe that was making a difference, only to have even more problems lmao. Isn't there just a youtube video out there for installing this? I feel like im over complicating it.
You're launching PS and then running cmd.exe in it? Why? Also you forgot the
cd
in front of the directory name.Oh yea sorry bout that cmd.exe thing at the beginning, forgot to mention those were failed attempts at trying to put the path of the directory of the ai voice thingy. Hope that didn't affect anything. Well, I tried typing "cd" in front of the directory name but uhh yea. I fucked it up again ffs. God damn im so sorry for being a dunce. Nothing is happening after I type those commands in.
Hmm, that should have worked. Try running
setup-cuda.bat
again (inside the venv) thenupdate-force.bat
, thenstart.bat
, if that doesn't work delete the directory and re-clone.How do I run
setup-cuda.bat
inside venv? I dont know what venv is. I'll try messing around for now until you respond but im not really certain on what you mean by run inside the venv, and how I would runsetup-cuda.bat
in it.From the looks of it, it looks like your missing the tortoise module, which I think it would just be easier to just redownload everything from scratch as suggested above.
I would just do the following:
Navigate to a folder in the file explorer, hold shift and right click, then click on the "Open Powershell Window Here" option. This will open powershell in that directory. Then run the following in order:
It's the Virtual ENVironment. It's what you activate when you run
.\venv\Scripts\activate
. You can tell because it appends(venv)
to the beginning of your prompts.Okay, I did what you recommended and deleted the ai voice folder then just re-extracted the zip file again to start fresh. After a while I got to this screen, but I do not know if I should do F or D, this could have possibly been what I messed up on the last time, maybe I choose the wrong one?
I never got that screen when trying to set-up, but I would assume directory in this case.
Welp, nothing I did worked. I followed a youtubers guide, didnt work. Guess im just cursed with stupidity or something.
Okay, I somehow figured it out. Idk how, but I managed to make something work by just doing all the steps over and over again and going insane in the process. Huge thanks to https://www.youtube.com/@Jarods_Journey for helping me out a lot though, couldn't have done it without him.
The issue is because your Python version is too new, and one of the depencies errors upon installing if you scroll up.
To fix:
Now go into the folder you cloned:
No more missing tortoise or tortoise.api, as we made it use 3.9.17 instead of the version of Python you have installed.
I tried it, python is 3.9.17, and still this error.... how I can solve that