Skip to content
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

运行examples/api下的实例时,提示ModuleNotFoundError: No module named 'tools.audio' #820

Open
fhqfhvtx opened this issue Nov 13, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@fhqfhvtx
Copy link

fhqfhvtx commented Nov 13, 2024

按照exaplmes/api/readme操作,操作步骤

1、clone git代码

2、安装依赖
进入Chattts目录,执行命令
pip install -r examples/api/requirements.txt

3、启动服务
fastapi dev examples/api/main.py --host 0.0.0.0 --port 8000

控制台报错:
ModuleNotFoundError: No module named 'tools.audio'

感觉错误原因是tools目录下的包并没有包含在ChatTTS的安装文件中,所有找不到。这个问题如何解决?

@fhqfhvtx fhqfhvtx changed the title 运行examples/api下的实例是,提示ModuleNotFoundError: No module named 'tools.audio' 运行examples/api下的实例时,提示ModuleNotFoundError: No module named 'tools.audio' Nov 13, 2024
@fumiama fumiama added the documentation Improvements or additions to documentation label Nov 18, 2024
@fumiama
Copy link
Member

fumiama commented Nov 18, 2024

应该是你启动方式的问题。examples/web/webui.py也引用了tools,可以尝试运行一下。

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

No branches or pull requests

2 participants