SoniTranslate icon indicating copy to clipboard operation
SoniTranslate copied to clipboard

ModuleNotFoundError: No module named 'rarfile'

Open LearnAI-gold opened this issue 1 year ago • 3 comments

Hi,

Thank you for sharing the project detail. I followed your instruction on Window 11 using anaconda prompt. While running below command,I am getting error. Can you please suggest solution.

(sonitr) C:\Windows\System32\SoniTranslate>python app_rvc.py The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. Traceback (most recent call last): File "C:\Windows\System32\SoniTranslate\app_rvc.py", line 10, in from soni_translate.audio_segments import create_translated_audio File "C:\Windows\System32\SoniTranslate\soni_translate\audio_segments.py", line 3, in from .utils import run_command File "C:\Windows\System32\SoniTranslate\soni_translate\utils.py", line 1, in import os, zipfile, rarfile, shutil, subprocess, shlex, sys # noqa ModuleNotFoundError: No module named 'rarfile'

LearnAI-gold avatar Aug 13 '24 16:08 LearnAI-gold

Fixed with Pip install command,

pip install rarfile

LearnAI-gold avatar Aug 13 '24 16:08 LearnAI-gold

I had the same message, these were the steps to resolve it:

pip install rarfile pip install srt pip install ffmpeg pip install faiss-cpu pip install --upgrade pyannote.audio conda install -c conda-forge parselmouth pip install praat-parselmouth pip install pyworld faiss-cpu librosa torchcrepe

I did trial and error, until I finally managed to run SoniTranslate after all these commands.

eliasribeiro avatar Apr 04 '25 18:04 eliasribeiro

I had the same message, these were the steps to resolve it:

pip install rarfile pip install srt pip install ffmpeg pip install faiss-cpu pip install --upgrade pyannote.audio conda install -c conda-forge parselmouth pip install praat-parselmouth pip install pyworld faiss-cpu librosa torchcrepe

I did trial and error, until I finally managed to run SoniTranslate after all these commands.

Great, solved the problem

zclucky avatar Jul 09 '25 13:07 zclucky