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

chat接口请求时的多线程报错 #293

Open
Bestbbb opened this issue Oct 4, 2023 · 1 comment
Open

chat接口请求时的多线程报错 #293

Bestbbb opened this issue Oct 4, 2023 · 1 comment
Assignees
Labels
operation problem 用户操作问题

Comments

@Bestbbb
Copy link

Bestbbb commented Oct 4, 2023

确认已寻找过答案

我已确认在 Github issue 页、常见问题页、文档 中都查找过,没有找到类似问题和资料。我也没有 google / bing/ 百度 / duckduckgo 到相关解答。

安装方式

手动安装

操作系统

wsl2 ubuntu22

离线唤醒相关

如果是离线唤醒相关的问题,是否已确保 arecord temp.wavaplay temp.wav (Linux) 或 rec temp.wavplay temp.wav (Mac)已正常工作?(注意要求不能带任何其他参数)如果不能,请先配置好麦克风和音响再尝试。

—— 我已确保录音、播放都正常工作才尝试 wukong-robot 。

问题描述

具体说明下问题
主要的问题是:
File "/root/miniconda3/envs/wukong/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/root/wukong-robot/robot/Conversation.py", line 416, in say
audios = self._tts(lines, cache, onCompleted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/wukong-robot/robot/Conversation.py", line 321, in _tts
task = pool.submit(
^^^^^^^^^^^^
File "/root/miniconda3/envs/wukong/lib/python3.11/concurrent/futures/thread.py", line 169, in submit
raise RuntimeError('cannot schedule new futures after '
RuntimeError: cannot schedule new futures after interpreter shutdown
在conversation的say方法中 使用post请求chat接口就会报这个错,但是放在单独的执行文件或者main方法中就没有错误

紧急求助

@Bestbbb Bestbbb added the operation problem 用户操作问题 label Oct 4, 2023
@LiYao-MI
Copy link

你好,这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
operation problem 用户操作问题
Projects
None yet
Development

No branches or pull requests

3 participants