Skip to content

api.py not work due to incorrect module path #1011

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

Closed
qingyuan18 opened this issue Apr 24, 2024 · 5 comments
Closed

api.py not work due to incorrect module path #1011

qingyuan18 opened this issue Apr 24, 2024 · 5 comments

Comments

@qingyuan18
Copy link

Traceback (most recent call last): File "/opt/program/api.py", line 134, in from feature_extractor import cnhubert
-- | --
  | 2024-04-24T09:23:04.195ZModuleNotFoundError: No module named 'feature_extractor'

the api.py is layed on top folder of GPT-SoVITS, but feature_extractor is layed on sub GPT_SoVITS
image

I'm trying to add the path into it :

current_dir = os.path.dirname(os.path.abspath(file))
sub_gpt_sovits_folder = os.path.join(current_dir, 'GPT_SoVITS')
sys.path.append(sub_gpt_sovits_folder)

@RVC-Boss
Copy link
Owner

好,欢迎pr

@RVC-Boss
Copy link
Owner

楼主看看这个pr?我已经合了,有没有解决你的问题

@qingyuan18
Copy link
Author

qingyuan18 commented Apr 28, 2024 via email

@370281jay
Copy link

楼主看看这个pr?我已经合了,有没有解决你的问题

屏幕截图 2024-04-28 230739 屏幕截图 2024-04-28 230815 没解决,还是不行

@XXXXRT666
Copy link
Contributor

你的api就不应该在runtime里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants