152334H / tortoise-tts-fast

Fast TorToiSe inference (5x or your money back!)
GNU Affero General Public License v3.0
779 stars 179 forks source link

ModuleNotFoundError: No module named 'tortoise' #66

Open OtterRocks opened 1 year ago

OtterRocks commented 1 year ago

I'm trying to run tortoise-tts-fast from Streamlit using the command streamlit run scripts/app.py in Anaconda Prompt. But I'm getting an error on the page that says

ModuleNotFoundError: No module named 'tortoise'
Traceback:
File "C:\Users\USER\anaconda3\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "C:\Users\USER\tortoise-tts-fast\scripts\app.py", line 8, in <module>
    from tortoise.api import MODELS_DIR

In this case, I've substituted my actual user account name with the word "USER". This is my first time doing anything like this on my computer, so I'm unsure if I messed up somewhere when I installed Anaconda or PyTorch. I only got as far up to pure python install section in the Installation section of the ReadMe. And I installed tortoise-tts-fast with no prior installation of the original tortoise-tts. Any help would be appreciated!

TiptopFunk commented 1 year ago

Hi Otterrock, you can copy the file app.py from the scripts folder to the tortoise-tts-fast folder, then using streamlit run app.py to run the webui.

TiptopFunk commented 1 year ago

this is quiet weired bug, i can use streamlit run scripts/app.py on windows without problem, when i switch to my linux desktop, i have to move the app.py to uplevel folder to make it work.