-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE]: ModuleNotFoundError: No module named 'fairseq' #1203
Comments
plz try run this command in terminate: pip install fairseq and run app again |
I get the same error on Gentoo Linux using an AMD GPU, so maybe I can assist. After installing fairseq, the error message changes to requiring pyworld:
And after installing pyworld, it changes to looking for "libtorch_cuda.so". I'm not sure what package to install to fix this, but after doing some research it seems like it might come with nvidia pytorch packages. Since I am using AMD (rocm) packages, this seems like it shouldn't be required? I can't tell if it's these fairseq/pyworld/libtorch_cuda absences that are causing the crash, or if this is a separate thing from the modelSlots error.
|
After temporarily resolving a different issue by reverting the git repository to a previous commit, this problem also disappeared. My assumption is that these libraries are normally not required on my system and are only pulled in by the code that runs after an error occurs, but it is just an assumption. If that's true, it doesn't seem like a major problem but does still seem to represent undesired behavior because it was masking the real problem. |
you can try this: |
Voice Changer Version
v.1.5.3.18a
Operational System
Ubuntu 22.04
GPU
None
Read carefully and check the options
Model Type
RVC
Issue Description
Got the
ModuleNotFoundError: No module named 'fairseq'
in version v.1.5.3.18aOccurs when selecting any model in GUI right after opening GUI in a browser.
Basically followed the manual on a freshly installed Ubuntu 22.04.
Found somewhat similar issue with the older version.
Application Screenshot
No response
Logs on console
Voice Changer] model slot is changed -1 -> 0
................RVC
[Voice Changer] post_update_settings ex: No module named 'fairseq'
Traceback (most recent call last):
File "/home/USER/voice-changer/server/restapi/MMVC_Rest_Fileuploader.py", line 71, in post_update_settings
info = self.voiceChangerManager.update_settings(key, val)
File "/home/USER/voice-changer/server/voice_changer/VoiceChangerManager.py", line 348, in update_settings
self.generateVoiceChanger(newVal)
File "/home/USER/voice-changer/server/voice_changer/VoiceChangerManager.py", line 256, in generateVoiceChanger
from voice_changer.RVC.RVCr2 import RVCr2
File "/home/USER/voice-changer/server/voice_changer/RVC/RVCr2.py", line 12, in
from voice_changer.RVC.embedder.EmbedderManager import EmbedderManager
File "/home/USER/voice-changer/server/voice_changer/RVC/embedder/EmbedderManager.py", line 5, in
from voice_changer.RVC.embedder.FairseqContentvec import FairseqContentvec
File "/home/USER/voice-changer/server/voice_changer/RVC/embedder/FairseqContentvec.py", line 3, in
from voice_changer.RVC.embedder.FairseqHubert import FairseqHubert
File "/home/USER/voice-changer/server/voice_changer/RVC/embedder/FairseqHubert.py", line 4, in
from fairseq import checkpoint_utils
ModuleNotFoundError: No module named 'fairseq'
The text was updated successfully, but these errors were encountered: