RockChinQ / revLibs

ChatGPT、Claude QQ 机器人,以插件形式为 QChatGPT 项目接入ChatGPT、Claude、Bard、gpt4free等接口的逆向工程库
208 stars 17 forks source link

ModuleNotFoundError: No module named 'revChatGPT' #1

Closed zuilintan closed 1 year ago

zuilintan commented 1 year ago
[2023-02-17 02:16:29.530] reloader.py (25) - [INFO] : 执行程序关闭流程
[2023-02-17 02:16:29.531] main.py (254) - [INFO] : 持久化session: person_XXXXXXXX
[2023-02-17 02:16:29.547] reloader.py (16) - [INFO] : reload module: audit.gatherer
[2023-02-17 02:16:29.551] reloader.py (16) - [INFO] : reload module: database.manager
[2023-02-17 02:16:29.556] reloader.py (16) - [INFO] : reload module: openai.keymgr
[2023-02-17 02:16:29.557] reloader.py (16) - [INFO] : reload module: openai.manager
[2023-02-17 02:16:29.558] reloader.py (16) - [INFO] : reload module: openai.modelmgr
[2023-02-17 02:16:29.559] reloader.py (16) - [INFO] : reload module: openai.session
[2023-02-17 02:16:29.560] reloader.py (16) - [INFO] : reload module: plugin.host
[2023-02-17 02:16:29.562] reloader.py (16) - [INFO] : reload module: plugin.models
[2023-02-17 02:16:29.562] reloader.py (16) - [INFO] : reload module: plugin.settings
[2023-02-17 02:16:29.563] reloader.py (16) - [INFO] : reload module: plugin.switch
[2023-02-17 02:16:29.564] reloader.py (16) - [INFO] : reload module: qqbot.command
[2023-02-17 02:16:29.565] reloader.py (16) - [INFO] : reload module: qqbot.filter
[2023-02-17 02:16:29.566] reloader.py (16) - [INFO] : reload module: qqbot.manager
[2023-02-17 02:16:29.567] reloader.py (16) - [INFO] : reload module: qqbot.message
[2023-02-17 02:16:29.567] reloader.py (16) - [INFO] : reload module: qqbot.process
[2023-02-17 02:16:29.568] reloader.py (16) - [INFO] : reload module: utils.constants
[2023-02-17 02:16:29.569] reloader.py (16) - [INFO] : reload module: utils.context
[2023-02-17 02:16:29.570] reloader.py (16) - [INFO] : reload module: utils.pkgmgr
[2023-02-17 02:16:29.571] reloader.py (16) - [INFO] : reload module: utils.reloader
[2023-02-17 02:16:29.571] reloader.py (16) - [INFO] : reload module: utils.updater
[2023-02-17 02:16:29.575] reloader.py (16) - [INFO] : reload module: revLibs.main
Exception in thread Thread-32:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/bot/pkg/qqbot/command.py", line 281, in reload_task
    pkg.utils.reloader.reload_all()
  File "/bot/pkg/utils/reloader.py", line 40, in reload_all
    walk(plugins)
  File "/bot/pkg/utils/reloader.py", line 14, in walk
    walk(__import__(module.__name__ + '.' + item.name, fromlist=['']), prefix + item.name + '.')
  File "/bot/pkg/utils/reloader.py", line 17, in walk
    importlib.reload(__import__(module.__name__ + '.' + item.name, fromlist=['']))
  File "/bot/plugins/revLibs/main.py", line 8, in <module>
    from revChatGPT.V1 import Chatbot
ModuleNotFoundError: No module named 'revChatGPT'
RockChinQ commented 1 year ago

主程序是手动部署的还是自动部署的?自动部署是安装器还是Docker?

zuilintan commented 1 year ago

自动部署, Docker

RockChinQ commented 1 year ago

依赖库安装失败,可以尝试发送指令!plugin update使程序自动解决依赖,或进入容器执行指令pip3 install revChatGPT --upgrade

zuilintan commented 1 year ago

的确是安装失败, 我将bot/plugins/revLibs删除, 重新 !plugin https://github.com/RockChinQ/revLibs 待其完成后 !reload 这次就正常了

虽然上一次也一样的流程, 但可能过程中网络出现了波动没下全revLibs吧

RockChinQ commented 1 year ago

的确是安装失败, 我将bot/plugins/revLibs删除, 重新 !plugin https://github.com/RockChinQ/revLibs 待其完成后 !reload 这次就正常了

虽然上一次也一样的流程, 但可能过程中网络出现了波动没下全revLibs吧

是的,但可能存在一个异步处理的bug,昨天我也遇到了,解决方案就是重新安装插件