Can't start.bat #457

Open
opened 2023-11-28 14:57:54 +00:00 by Icantevenname · 3 comments

After hours of troubleshooting, when I input start.bat, I get this

Traceback (most recent call last):
File ".\src\main.py", line 11, in
from utils import *
File "E:\TorToiSe TTS\ai-voice-cloning\src\utils.py", line 28, in
import torch
File "C:\Users\purpl\AppData\Local\Programs\Python\Python38\lib\site-packages\torch_init_.py", line 451, in
raise ImportError(textwrap.dedent('''
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded the torch/_C folder
of the PyTorch repository rather than the C extensions which
are expected in the torch._C namespace. This can occur when
using the install workflow. e.g.
$ python setup.py install && python -c "import torch"

As a reference of how much I know about using CMD or Python, I only know that inputing CMD into the navigation bars on file explorers starts at the file and whatever is on ReadMe's.

After hours of troubleshooting, when I input start.bat, I get this Traceback (most recent call last): File ".\src\main.py", line 11, in <module> from utils import * File "E:\TorToiSe TTS\ai-voice-cloning\src\utils.py", line 28, in <module> import torch File "C:\Users\purpl\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\__init__.py", line 451, in <module> raise ImportError(textwrap.dedent(''' ImportError: Failed to load PyTorch C extensions: It appears that PyTorch has loaded the `torch/_C` folder of the PyTorch repository rather than the C extensions which are expected in the `torch._C` namespace. This can occur when using the `install` workflow. e.g. $ python setup.py install && python -c "import torch" As a reference of how much I know about using CMD or Python, I only know that inputing CMD into the navigation bars on file explorers starts at the file and whatever is on ReadMe's.

Try installing Conda and setting up a clean Python 3.9 environment through that.

Installing Python repositories is a huge pain in the neck when you've previously installed other versions of Python, or of Python libraries. Conda takes care of all that for you. It's like using a clean disc image for each different repository. You just need to spend some time learning how to use it.

https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html#managing-python

Try installing Conda and setting up a clean Python 3.9 environment through that. Installing Python repositories is a huge pain in the neck when you've previously installed other versions of Python, or of Python libraries. Conda takes care of all that for you. It's like using a clean disc image for each different repository. You just need to spend some time learning how to use it. https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html#managing-python

Follow instructions on Windows, start.bat get show me error:

PS C:\AI_VOICE\PortableGit\ai-voice-cloning> .\start.bat
C:\AI_VOICE\PortableGit\ai-voice-cloning>call .\venv\Scripts\activate.bat
Traceback (most recent call last):
File "C:\AI_VOICE\PortableGit\ai-voice-cloning\src\main.py", line 11, in
from utils import *
File "C:\AI_VOICE\PortableGit\ai-voice-cloning\src\utils.py", line 40, in
from tortoise.api import TextToSpeech as TorToise_TTS, MODELS, get_model_path, pad_or_truncate
File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\api.py", line 21, in
from tortoise.models.clvp import CLVP
File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\models\clvp.py", line 7, in
from tortoise.models.transformer import Transformer
File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\models\transformer.py", line 6, in
from rotary_embedding_torch import RotaryEmbedding, broadcat
ImportError: cannot import name 'broadcat' from 'rotary_embedding_torch' (C:\AI_VOICE\PortableGit\ai-voice-cloning\venv\lib\site-packages\rotary_embedding_torch_init_.py)

Follow instructions on Windows, start.bat get show me error: PS C:\AI_VOICE\PortableGit\ai-voice-cloning> .\start.bat C:\AI_VOICE\PortableGit\ai-voice-cloning>call .\venv\Scripts\activate.bat Traceback (most recent call last): File "C:\AI_VOICE\PortableGit\ai-voice-cloning\src\main.py", line 11, in <module> from utils import * File "C:\AI_VOICE\PortableGit\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 File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\api.py", line 21, in <module> from tortoise.models.clvp import CLVP File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\models\clvp.py", line 7, in <module> from tortoise.models.transformer import Transformer File "C:\AI_VOICE\PortableGit\ai-voice-cloning\modules\tortoise-tts\tortoise\models\transformer.py", line 6, in <module> from rotary_embedding_torch import RotaryEmbedding, broadcat ImportError: cannot import name 'broadcat' from 'rotary_embedding_torch' (C:\AI_VOICE\PortableGit\ai-voice-cloning\venv\lib\site-packages\rotary_embedding_torch\__init__.py)

I'm having the same issue. Seems Tortoise and DLAS are no longer installed and I had to manually add them in. I then end up with the 'broadcat' error that you have.

I think this repository is dead.

I'm having the same issue. Seems Tortoise and DLAS are no longer installed and I had to manually add them in. I then end up with the 'broadcat' error that you have. I think this repository is dead.
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#457
No description provided.