Open fattank opened 1 year ago
重新安装 已经搞定。
我这个模块卸载了,然后重新安装还是不可以,是什么原因
User:
nihao
Bot:
[ERROR][2023-04-23 16:03:39][log.py:47] - [MultiChannel] Start up failed on terminal: No module named 'openai'
[ERROR][2023-04-23 16:03:39][log.py:45] - App startup failed!
[ERROR][2023-04-23 16:03:39][log.py:50] - No module named 'openai'
Traceback (most recent call last):
File "app.py", line 42, in main
start_process(channel_type[0], args.config)
File "app.py", line 23, in start_process
raise e
File "app.py", line 20, in start_process
channel.startup()
File "/root/chatgpt/bot-on-anything/channel/terminal/terminal_channel.py", line 21, in startup
for res in super().build_reply_content(prompt, context):
File "/root/chatgpt/bot-on-anything/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/chatgpt/bot-on-anything/bridge/bridge.py", line 18, in fetch_reply_content
return model_factory.create_bot(type).reply(query, context)
File "/root/chatgpt/bot-on-anything/model/model_factory.py", line 21, in create_bot
from model.openai.chatgpt_model import ChatGPTModel
File "/root/chatgpt/bot-on-anything/model/openai/chatgpt_model.py", line 7, in
[2023-03-19 03:06:16,829] ERROR in app: Exception on /chat [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/tank/Downloads/bot-on-anything-master/channel/http/http_channel.py", line 28, in chat
reply_text = HttpChannel().handle(data=data)
File "/home/tank/Downloads/bot-on-anything-master/channel/http/http_channel.py", line 65, in handle
return super().build_reply_content(data["msg"], context)
File "/home/tank/Downloads/bot-on-anything-master/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/home/tank/Downloads/bot-on-anything-master/bridge/bridge.py", line 9, in fetch_reply_content
return model_factory.create_bot(config.conf().get("model").get("type")).reply(query, context)
File "/home/tank/Downloads/bot-on-anything-master/model/model_factory.py", line 21, in create_bot
from model.chatgpt.chatgpt_model import ChatGPTModel
File "/home/tank/Downloads/bot-on-anything-master/model/chatgpt/chatgpt_model.py", line 7, in
import openai
ModuleNotFoundError: No module named 'openai'
104.149.161.93 - - [19/Mar/2023 03:06:16] "POST /chat HTTP/1.1" 500 -