Start.bat error after installation - "cannot import name 'broadcat'" #463

Open
opened 2023-12-16 01:41:12 +00:00 by nirurin · 2 comments

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. Use HF_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)

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. Use `HF_HOME` instead. warnings.warn( Traceback (most recent call last): File "D:\AIVoice\ai-voice-cloning\src\main.py", line 11, in <module> from utils import * File "D:\AIVoice\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 "D:\AIVoice\ai-voice-cloning\modules\tortoise-tts\tortoise\api.py", line 21, in <module> from tortoise.models.clvp import CLVP File "D:\AIVoice\ai-voice-cloning\modules\tortoise-tts\tortoise\models\clvp.py", line 7, in <module> from tortoise.models.transformer import Transformer File "D:\AIVoice\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' (D:\AIVoice\ai-voice-cloning\venv\lib\site-packages\rotary_embedding_torch\__init__.py)
Author

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

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
Contributor

Easiest and most straightforward fix is modify the requirements.txt file by placing the following at the end.

rotary-embedding-torch==0.4.0

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:

.\venv\Scripts\activate
pip uninstall rotary-embedding-torch
pip install rotary-embedding-torch==0.4.0

Unfortunately, looks like mrq has gone inactive as I haven't seen any activity for the past couple of months here.

Easiest and most straightforward fix is modify the requirements.txt file by placing the following at the end. ``` rotary-embedding-torch==0.4.0 ``` 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: ``` .\venv\Scripts\activate pip uninstall rotary-embedding-torch pip install rotary-embedding-torch==0.4.0 ``` Unfortunately, looks like mrq has gone inactive as I haven't seen any activity for the past couple of months here.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#463
No description provided.