Start.bat error after installation - "cannot import name 'broadcat'" #463
Labels
No Label
bug
duplicate
enhancement
help wanted
insufficient info
invalid
news
not a bug
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: mrq/ai-voice-cloning#463
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?
D:\AIVoice\ai-voice-cloning\venv\lib\site-packages\transformers\utils\hub.py:123: FutureWarning: Using
TRANSFORMERS_CACHE
is deprecated and will be removed in v5 of Transformers. UseHF_HOME
instead.warnings.warn(
Traceback (most recent call last):
File "D:\AIVoice\ai-voice-cloning\src\main.py", line 11, in
from utils import *
File "D:\AIVoice\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 "D:\AIVoice\ai-voice-cloning\modules\tortoise-tts\tortoise\api.py", line 21, in
from tortoise.models.clvp import CLVP
File "D:\AIVoice\ai-voice-cloning\modules\tortoise-tts\tortoise\models\clvp.py", line 7, in
from tortoise.models.transformer import Transformer
File "D:\AIVoice\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' (D:\AIVoice\ai-voice-cloning\venv\lib\site-packages\rotary_embedding_torch_init_.py)
I went back to an old install I had backed up, and installed python 3.10 instead (which is what I used back then). After a bit of tweaking I managed to get it working.
Then I did a forced-update, and tried again, and the broadcat error reappears. So it's something broken in the current version of the software
Easiest and most straightforward fix is modify the requirements.txt file by placing the following at the end.
If that doesn't work, you can manually modify the install requirements by opening up a terminal window by typing cmd in the directory of the ai-voice-cloning folder and doing the following:
Unfortunately, looks like mrq has gone inactive as I haven't seen any activity for the past couple of months here.