RockChinQ / qcg-installer

ChatGPT QQ 机器人的自动安装器,自动化部署,适用于QChatGPT项目: https://github.com/RockChinQ/QChatGPT
GNU Affero General Public License v3.0
355 stars 19 forks source link

[BUG]启动run-bot.bat闪退,命令行运行报错: No module named 'colorlog' #15

Closed lingyunytc closed 1 year ago

lingyunytc commented 1 year ago

运行环境

描述漏洞 命令行运行run-bot.bat

完整报错信息 ~~)J((V }LDJ{HE J}KPF4M

RockChinQ commented 1 year ago

已检查 https://github.com/RockChinQ/qcg-installer/issues/2 的情况下仍然有此问题

检查python下是否有Scripts目录,若没有请先查看此issue

故障原因 自动部署时安装依赖库时失败

解决方法

在安装器同目录执行指令 python\Scripts\pip.exe install yiri-mirai openai colorlog func_timeout dulwich

成功安装完依赖后,执行以下指令 python\Scripts\pip.exe install websockets --upgrade

JjiahanH commented 1 year ago

你好,怎么处理No module named 'pip'问题

RockChinQ commented 1 year ago

你好,怎么处理No module named 'pip'问题

有什么报错信息

JjiahanH commented 1 year ago

Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exe__main__.py", line 4, in ModuleNotFoundError: No module named 'pip'

你好,怎么处理No module named 'pip'问题

有什么报错信息

RockChinQ commented 1 year ago

Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exemain.py", line 4, in ModuleNotFoundError: No module named 'pip'

你好,怎么处理No module named 'pip'问题

有什么报错信息

检查python下是否有Scripts目录,若没有请先查看https://github.com/RockChinQ/qcg-installer/issues/21

JjiahanH commented 1 year ago

Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exemain.py", line 4, in ModuleNotFoundError: No module named 'pip'

你好,怎么处理No module named 'pip'问题

有什么报错信息

检查python下是否有Scripts目录,若没有请先查看#21

你好,是在进行过这个步骤后出现的这个

RockChinQ commented 1 year ago

Traceback (most recent call last): File "runpy.py", line 196, in _run_module_as_main File "runpy.py", line 86, in _run_code File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exemain.py", line 4, in ModuleNotFoundError: No module named 'pip'

你好,怎么处理No module named 'pip'问题

有什么报错信息

检查python下是否有Scripts目录,若没有请先查看#21

你好,是在进行过这个步骤后出现的这个

是正在进行此步骤时发生的?把你执行指令前后的命令行输出多贴一点出来

JjiahanH commented 1 year ago
C:\Users\贾涵>cd C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>cd python

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python>python.exe get-pip.py
Collecting pip
  Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
Collecting setuptools
  Using cached setuptools-65.7.0-py3-none-any.whl (1.2 MB)
Collecting wheel
  Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel, setuptools, pip
Successfully installed pip-22.3.1 setuptools-65.7.0 wheel-0.38.4

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python>cd ..                                                                 
C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>python\Scripts\pip.exe install pymysql yiri-mirai openai colorlog func_timeout
Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>
JjiahanH commented 1 year ago

麻烦了

RockChinQ commented 1 year ago
C:\Users\贾涵>cd C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>cd python

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python>python.exe get-pip.py
Collecting pip
  Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
Collecting setuptools
  Using cached setuptools-65.7.0-py3-none-any.whl (1.2 MB)
Collecting wheel
  Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: wheel, setuptools, pip
Successfully installed pip-22.3.1 setuptools-65.7.0 wheel-0.38.4

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python>cd ..                                                                 
C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>python\Scripts\pip.exe install pymysql yiri-mirai openai colorlog func_timeout
Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的\python\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'

C:\Users\贾涵\Desktop\压缩包\压缩包\电脑的>

可能是由于电脑上本身装有Python环境,导致自动部署冲突,建议你尝试 进行手动部署

JjiahanH commented 1 year ago

好的谢谢啦

YuanyiZhezhi11 commented 1 year ago

在安装器同目录执行指令要怎么做,我一打开就闪退了

RockChinQ commented 1 year ago

在安装器同目录执行指令要怎么做,我一打开就闪退了

在命令行中执行,参考 https://zhuanlan.zhihu.com/p/67513308 ,需要将目录切换到安装器同目录

YuanyiZhezhi11 commented 1 year ago

要怎么切换,安装器是mirai吗

RockChinQ commented 1 year ago

要怎么切换,安装器是mirai吗

命令行使用方法请自行搜索了解;你需要在qcg-installer的同目录执行这些命令

YuanyiZhezhi11 commented 1 year ago

系统找不到指定的路径,是要在cmd里打开到同目录吗,我不太会弄抱歉

YuanyiZhezhi11 commented 1 year ago

现在我这边显示无法完成操作 无法成功完成操作,因为文件包含病毒或潜在的垃圾软件。在cmd中

RockChinQ commented 1 year ago

系统找不到指定的路径,是要在cmd里打开到同目录吗,我不太会弄抱歉

如果你是Windows 10系统,你可以直接打开到qcg-installer同目录之后,按住shift的同时在空白处右键,点击在此处打开Powershell或相似条目,在打开的命令行窗口中输入以上要求的指令;如果此打开命令行的方法不可用,请根据刚刚这个知乎文章打开命令行,使用cd命令切换到目标目录再执行

RockChinQ commented 1 year ago

现在我这边显示无法完成操作 无法成功完成操作,因为文件包含病毒或潜在的垃圾软件。在cmd中

有报错发截图

YuanyiZhezhi11 commented 1 year ago

image

YuanyiZhezhi11 commented 1 year ago

image

RockChinQ commented 1 year ago

image

这个我没法提供解决方案,建议你关闭电脑上所有杀毒软件

YuanyiZhezhi11 commented 1 year ago

本机的安全防护要怎么关

YuanyiZhezhi11 commented 1 year ago

IMG_20230118_205635.jpg如果是自动安装的话也会弹出这样的情况

YuanyiZhezhi11 commented 1 year ago

无法连接到mirai服务器怎么办

DevilCoke1 commented 1 year ago

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)'))': /packages/57/6d/1ba9762f7caf4f2cf8bdd268087e4ea6c9a83f197f5c2afc06ff0812a846/yiri_mirai-0.2.6.1-py3-none-any.whl ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/57/6d/1ba9762f7caf4f2cf8bdd268087e4ea6c9a83f197f5c2afc06ff0812a846/yiri_mirai-0.2.6.1-py3-none-any.whl (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:997)')))

DevilCoke1 commented 1 year ago

这个跟梯子有问题,把梯子关了就可以。

DevilCoke1 commented 1 year ago

image 1