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

二维码扫描登陆正常,发消息后台出错 #113

Closed
kenixxie opened this issue Feb 8, 2023 · 4 comments
Closed

二维码扫描登陆正常,发消息后台出错 #113

kenixxie opened this issue Feb 8, 2023 · 4 comments

Comments

@kenixxie
Copy link

kenixxie commented Feb 8, 2023

前置确认

  1. 运行于国内网络环境,未开代理
  2. python 已安装:版本在 3.7 ~ 3.10 之间,依赖已安装
  3. 在已有 issue 中未搜索到类似问题
  4. FAQS 中无类似问题

问题描述

简要说明、截图、复现步骤等,也可以是需求或想法

终端日志 (如有报错)

[在此处粘贴终端日志]
Start auto replying.
[ERROR][2023-02-08 12:28:25][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
  File "/home/jxsas/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
    reply_text = super().build_reply_content(query, context)
  File "/home/jxsas/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
    return Bridge().fetch_reply_content(query, context)
  File "/home/jxsas/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
    return bot_factory.create_bot("openAI").reply(query, context)
  File "/home/jxsas/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
    from bot.openai.open_ai_bot import OpenAIBot
  File "/home/jxsas/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'
[ERROR][2023-02-08 12:28:33][wechat_channel.py:116] - No module named 'openai'
Traceback (most recent call last):
  File "/home/jxsas/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 112, in _do_send
    reply_text = super().build_reply_content(query, context)
  File "/home/jxsas/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
    return Bridge().fetch_reply_content(query, context)
  File "/home/jxsas/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
    return bot_factory.create_bot("openAI").reply(query, context)
  File "/home/jxsas/chatgpt-on-wechat/bot/bot_factory.py", line 24, in create_bot
    from bot.openai.open_ai_bot import OpenAIBot
  File "/home/jxsas/chatgpt-on-wechat/bot/openai/open_ai_bot.py", line 6, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'


### 环境

 - 操作系统类型  (Mac/Windows/Linux):Linux
 - Python版本  ( 执行 `python3 -V` ):   Python 3.10.7                   
 - pip版本  ( 依赖问题此项必填,执行 `pip3 -V`):pip 22.2 from /usr/lib/python3/dist-packages/pip (python 3.10
@tjc6386675
Copy link

同问

@zhayujie
Copy link
Owner

zhayujie commented Feb 8, 2023

see #88

@zhayujie
Copy link
Owner

zhayujie commented Feb 8, 2023

执行 pip3 show openai 看看有没有下载

@kenixxie
Copy link
Author

kenixxie commented Feb 8, 2023 via email

@zhayujie zhayujie closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants