第二个报错安装request后仍然存在,这个是报错下面的内容
Traceback (most recent call last):
File ".\include\plugins\start.py", line 17, in start
rss_list = RWlist.readRss() # 读取list
File ".\include\plugins\RSSHub\RWlist.py", line 11, in readRss
with codecs.open(file_path+"rss.json", 'r','utf-8') as load_f:
File "c:\users\maynearppp\appdata\local\programs\python\python38-32\lib\codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: './data/rss.json'
大佬,请问一下这个怎么解决
ERROR: Failed to import "include.plugins.start", error: [WinError 1225] 远程计算机拒绝网络连接。
ERROR: [WinError 1225] 远程计算机拒绝网络连接。
网络问题把
那我再试试,谢谢大佬
运行的时候出现错误,咋解决啊大佬
Traceback (most recent call last):
File "bot.py", line 3, in
import nonebot
ModuleNotFoundError: No module named 'nonebot'
你没运行pip install 那一句吧?
请问配置CQHTTP插件的时候,日志一直在报错怎么办?
[2020-07-04 17:28:43.483] [I] [日志] 日志控制台开启成功
[2020-07-04 17:28:43.489] [I] [心跳] 心跳发生器启动成功
[2020-07-04 17:28:43.489] [I] [HTTP] 开启 HTTP 服务器成功,开始监听 http://0.0.0.0:5700
[2020-07-04 17:28:43.491] [I] [反向WS] 开启反向 WebSocket 客户端(API)成功,开始连接 ws://127.0.0.1:8080/ws/api/
[2020-07-04 17:28:43.494] [I] [反向WS] 开启反向 WebSocket 客户端(Event)成功,开始连接 ws://127.0.0.1:8080/ws/event/
[2020-07-04 17:28:43.553] [I] [反向WS] 反向 WebSocket 连接尚未建立,无法上报
[2020-07-04 17:28:45.494] [W] [反向WS] 反向 WebSocket(API)客户端连接失败或异常断开,将在 3000 毫秒后尝试重连
[2020-07-04 17:28:45.495] [W] [反向WS] 反向 WebSocket(Event)客户端连接失败或异常断开,将在 3000 毫秒后尝试重连
还有就是powershell运行插件后报错如下,怎么处理
[2020-07-04 17:31:13,567 nonebot] ERROR: Failed to import "include.plugins.start", error: HTTP request failed
[2020-07-04 17:31:13,567 nonebot] ERROR: HTTP request failed
cqhttp插件配置按照要求修改了吗?报错运行pip install request
cqhttp配置已经按照文章中的修改过了,只修改了文章中提到的五项,其他选项均保持默认
第二个报错安装request后仍然存在,这个是报错下面的内容
Traceback (most recent call last):
File ".\include\plugins\start.py", line 17, in start
rss_list = RWlist.readRss() # 读取list
File ".\include\plugins\RSSHub\RWlist.py", line 11, in readRss
with codecs.open(file_path+"rss.json", 'r','utf-8') as load_f:
File "c:\users\maynearppp\appdata\local\programs\python\python38-32\lib\codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: './data/rss.json'
修改后重启没?第二个报错,把data文件夹删除重新来
重启后依然报同样的错误。"ws_reverse_url": "ws://127.0.0.1:8080/ws/"这一项如果在插件config中的HOST是0.0.0.0,PORT是8080的情况下是这么写么。
我找不到data文件夹啊。我也找不到这个rss.json,是在插件文件夹中么,我插件根目录只有include文件夹以及pycache
cqhttp版本是最新的吗?插件目录截图发我,你找找我邮箱
请问这个怎么弄?
ERROR: Invalid requirement: '<!DOCTYPE html>' (from line 6 of requirements.txt)
你python版本是3.8以上吗?
Python 3.8.2
你安装依赖是pip还是pip3
pip3,pip3 -> /usr/local/python3/bin/pip3
更新下pip3试试
pip3 install --upgrade pip
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already up-to-date: pip in /usr/local/python3/lib/python3.8/site-packages (20.1.1)
还是不能运行
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Invalid requirement: '<!DOCTYPE html>' (from line 6 of requirements.txt)
那你一个一个的安装把,打开这个txt文件,然后 pip3 install xxx依次安装,等号前面的替换xxx
不加 -i以及后面的参数试试
也不行,返回结果一样
感谢分享!