[GH-ISSUE #147] RVC module not working (No module named 'fairseq') #83

Open
opened 2026-10-15 18:04:12 +00:00 by bsakaguchi · 9 comments
Owner

Originally created by @xNissX233 on GitHub (Sep 4, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/147

Installed all requirements and rvc requirements, when trying to run extras it crashes with error:


Initializing RVC voice conversion (from ST request file)
Increasing server upload limit
Traceback (most recent call last):
  File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/server.py", line 384, in <module>
    import modules.voice_conversion.rvc_module as rvc_module
  File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/modules/voice_conversion/rvc_module.py", line 23, in <module>
    import modules.voice_conversion.rvc.rvc as rvc
  File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/modules/voice_conversion/rvc/rvc.py", line 18, in <module>
    from fairseq import checkpoint_utils
ModuleNotFoundError: No module named 'fairseq'

Originally created by @xNissX233 on GitHub (Sep 4, 2023). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Extras/issues/147 Installed all requirements and rvc requirements, when trying to run extras it crashes with error: ``` Initializing RVC voice conversion (from ST request file) Increasing server upload limit Traceback (most recent call last): File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/server.py", line 384, in <module> import modules.voice_conversion.rvc_module as rvc_module File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/modules/voice_conversion/rvc_module.py", line 23, in <module> import modules.voice_conversion.rvc.rvc as rvc File "/run/media/ruben/Prime/CharacterAI/oobabooga_linux/SillyTavern-extras/SillyTavern-extras/modules/voice_conversion/rvc/rvc.py", line 18, in <module> from fairseq import checkpoint_utils ModuleNotFoundError: No module named 'fairseq' ```
Author
Owner

@Ph0rk0z commented on GitHub (Sep 6, 2023):

obviously didn't install fairseq into env

<!-- gh-comment-id:1709196936 --> @Ph0rk0z commented on GitHub (Sep 6, 2023): obviously didn't install fairseq into env
Author
Owner

@xNissX233 commented on GitHub (Sep 7, 2023):

maybe fairseq is not in the requirements file

<!-- gh-comment-id:1709933263 --> @xNissX233 commented on GitHub (Sep 7, 2023): maybe fairseq is not in the requirements file
Author
Owner

@Cohee1207 commented on GitHub (Sep 7, 2023):

Fairseq is not in the requirement, it is redistributed in extras as a patched version of it.

<!-- gh-comment-id:1709935523 --> @Cohee1207 commented on GitHub (Sep 7, 2023): Fairseq is not in the requirement, it is redistributed in extras as a patched version of it.
Author
Owner

@xNissX233 commented on GitHub (Sep 7, 2023):

patched version? I'm using the main branch.

<!-- gh-comment-id:1709936406 --> @xNissX233 commented on GitHub (Sep 7, 2023): patched version? I'm using the main branch.
Author
Owner

@Cohee1207 commented on GitHub (Sep 7, 2023):

Here, to be precise
https://github.com/SillyTavern/SillyTavern-Extras/tree/main/modules/voice_conversion/fairseq

<!-- gh-comment-id:1709937481 --> @Cohee1207 commented on GitHub (Sep 7, 2023): Here, to be precise https://github.com/SillyTavern/SillyTavern-Extras/tree/main/modules/voice_conversion/fairseq
Author
Owner

@xNissX233 commented on GitHub (Sep 7, 2023):

then how can it not be installed?

<!-- gh-comment-id:1709938277 --> @xNissX233 commented on GitHub (Sep 7, 2023): then how can it not be installed?
Author
Owner

@Cohee1207 commented on GitHub (Sep 7, 2023):

I see you're having problems with modules not loading from relative paths. What is the working directory you're running extras from? (you should cd to install dir first).

<!-- gh-comment-id:1709953305 --> @Cohee1207 commented on GitHub (Sep 7, 2023): I see you're having problems with modules not loading from relative paths. What is the working directory you're running extras from? (you should cd to install dir first).
Author
Owner

@xNissX233 commented on GitHub (Sep 7, 2023):

I'm trying to fix talkinghead and this at the same time so I'm not sure now, but I THINK that RVC may be fixed just by doing a cd to the path of server.py indeed, I'm doing some tests
Edit: I can confirm it's working

<!-- gh-comment-id:1709955436 --> @xNissX233 commented on GitHub (Sep 7, 2023): I'm trying to fix talkinghead and this at the same time so I'm not sure now, but I THINK that RVC may be fixed just by doing a cd to the path of server.py indeed, I'm doing some tests Edit: I can confirm it's working
Author
Owner

@Ph0rk0z commented on GitHub (Sep 8, 2023):

Its working for me without python 3.11 or patched fairseq. Just 3.10 and normal fairseq. What stopped working for me was coqui local models and the old version of TTS in requirements is one without bark I think.

<!-- gh-comment-id:1711776149 --> @Ph0rk0z commented on GitHub (Sep 8, 2023): Its working for me without python 3.11 or patched fairseq. Just 3.10 and normal fairseq. What stopped working for me was coqui local models and the old version of TTS in requirements is one without bark I think.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
SillyTavern/SillyTavern-Extras#83
No description provided.