RVC-Project / RVC-Project/Retrieval-based-Voice-Conversion-WebUI

Running extract_f0_rmvpe.py gives ModuleNotFoundError: No module named 'infer.lib'

Open
#2,083 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
38.4k
Forks
5.3k
PR merge metrics
No merged PRs in 30d

Description

Im trying to run extract_f0_rmvpe.py by itself, to better understand the issue with faiss-cpu, but i cannot run it, because i keep getting this error

Traceback (most recent call last):
File "extract_f0_rmvpe.py", line 14, in
from infer.lib.audio import load_audio
ModuleNotFoundError: No module named 'infer.lib'

even after i installed infer with pip, with no errors or warnings

i am using a python 3.8 env as suggested, because of the fairseq bug

i tried using a python 3.10 env, to no avail

in all the requirements files

requirements-amd.txt
requirements-dml.txt
requirements-ipex.txt
requirements-py311.txt
requirements-win-for-realtime_vc_gui-dml.txt
requirements-win-for-realtime_vc_gui.txt
requirements.txt

now a single one has any version of infer, so i dont know what im doing wrong

Im using ubuntu

to replicate the issue, try running extract_f0_rmvpe.py by itself using a python 3.8 env, i used the imports in requirements.txt, and then manually installed any packages that werent already present using the feedback from errors

help is much appreciated

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with extract_f0_rmvpe.py in the reported Python 3.8 Ubuntu environment and reproduce the import traceback. Compare its infer.lib import with the listed requirements files and the repository layout. Done means the script gets past startup without ModuleNotFoundError and its dependency setup is documented or corrected.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.