quan666 / elf_rss Goto Github PK
View Code? Open in Web Editor NEWQQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub
Home Page: https://myelf.club/archives/221
License: GNU General Public License v3.0
QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub
Home Page: https://myelf.club/archives/221
License: GNU General Public License v3.0
ELF_RSS/include/plugins/RSSHub/rsshub.py
Lines 297 to 302 in cf08ca9
这段代码只保留最后一行,就能正常发送图片了。
CQ码发送本地图片都是需要File URI的,这点应该是平台无关。
我看过之前关闭了的一个issue,不知道@OmaruPolka 在那之后是否也遇到我这个情况。
'''
[root@VM-8-4-centos iYuan-Bot]# nb plugin install ELF_RSS2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Collecting ELF-RSS
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/be/c8/477e0a6f91b517e1eeaf9135f22009b1cfa42eaafb4e680fcfd9cdfee16a/ELF_RSS-2.3.0.tar.gz (34 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/be/c8/477e0a6f91b517e1eeaf9135f22009b1cfa42eaafb4e680fcfd9cdfee16a/ELF_RSS-2.3.0.tar.gz#sha256=f4815857ea991aa63bb9750d1b9c02225e3b098ab3c870d6102b4d26c6ce1eb2 (from https://pypi.tuna.tsinghua.edu.cn/simple/elf-rss/). Requested ELF-RSS from https://pypi.tuna.tsinghua.edu.cn/packages/be/c8/477e0a6f91b517e1eeaf9135f22009b1cfa42eaafb4e680fcfd9cdfee16a/ELF_RSS-2.3.0.tar.gz#sha256=f4815857ea991aa63bb9750d1b9c02225e3b098ab3c870d6102b4d26c6ce1eb2 has inconsistent version: filename has '2.3.0', but metadata has '2.0.0'
ERROR: Could not find a version that satisfies the requirement ELF-RSS (from versions: 2.3.0)
ERROR: No matching distribution found for ELF-RSS
'''
以插件形式添加elf_rss2.2.2版本会报错,日志如下,新增依赖已安装,回退2.2.1则一切正常
05-09 07:56:43 [INFO] nonebot | 涩图bot 检查更新
05-09 07:56:43 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E05XWiBVgAAXPg
x?format=jpg&name=orig]下载失败,将重试
'Response' object has no attribute 'STATUS_CODE'
05-09 07:56:43 [ERROR] apscheduler | Job "check_update (trigger: interval[0:02:0
0], next run at: 2021-05-09 07:58:48 CST)" raised an exception
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.
py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.
py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\nb
.exe_main.py", line 7, in
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nb_cli\commands\main.py", line 26, in run
run_bot(file, app)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nb_cli\handlers\deploy.py", line 25, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nonebot_init.py", line 227, in run
get_driver().run(host, port, *args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nonebot\drivers\fastapi.py", line 160, in run
uvicorn.run(app or self.server_app,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\uvicorn\main.py", line 386, in run
server.run()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\uvicorn\server.py", line 49, in run
loop.run_until_complete(self.serve(sockets=sockets))
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 629, in run_until_complete
self.run_forever()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 596, in run_forever
self._run_once()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 1890, in _run_once
handle._run()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\apscheduler\executors\base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "src/plugins\ELF_RSS2\RSS\util.py", line 13, in wrapper
return await asyncio.wait_for(method(self, *args, **kwargs), timeout=time)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\tasks.py", line 481, in wait_for
return fut.result()
File "src/plugins\ELF_RSS2\RSS\my_trigger.py", line 16, in check_update
await rss_parsing.start(rss)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 152, in start
item_msg += await handle_summary(summary=item['summary'], rss=rss)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 336, in handle_summary
res_msg += await handle_img(html=summary_html, img_proxy=rss.img_proxy, img_
num=rss.max_image_number)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 525, in handle_img
img_base64 = await download_image(img.attr("src"), img_proxy)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 506, in download_image
if pic.STATUS_CODE not in STATUS_CODE:
AttributeError: 'Response' object has no attribute 'STATUS_CODE'
<item>
<title>养成了坏习惯</title>
<link>https://paul.ren/note/#/2021-216</link>
<pubDate>Wed, 04 Aug 2021 00:00:00 +8000</pubDate>
<content></content>
</item>
结果订阅之后得到的结果是:
链接:https://paul.ren/note/#/2021-216
日期:08月01日 00:00:00
变成了 8 月 1 日
然后就是希望支持下 HTML 元素之间的换行,像 p 元素和 p 元素之间可以增加 2 个换行,不然读起来挺费劲的
<content>
<![CDATA[ <p>这段时间我有很多不良习惯,晚睡,喜欢偷懒,学习没目标,起码没动力,开源项目没进展。说白了还是感觉赚到的东西少了,身心也很疲惫。就和我做视频没人看一样,现在总感觉学什么都难,找不回当初那种「学会了/做出来了」的那种喜悦感了。</p><p>开源项目也是,做的东西相对平庸,感觉没有什么太大的亮点,知道并使用的人并不太多。真要问我想做什么,其实想重构下方块播放器,这玩意的现有代码有 Bug,且打算参考 React 这边写组件的经验重新来过(还是原生)</p><p>测试群有一个特别奇葩的问题,在 Antd 的 InputNumber 组件里面输入 45 会变成 4.00 和 5.00,而我电脑效果正常是 45.00。
【奇趣保罗的日记】更新了!
----------------------
标题:养成了坏习惯
这段时间我有很多不良习惯,晚睡,喜欢偷懒,学习没目标,起码没动力,开源项目没进展。说白了还是感觉赚到的东西少了,就和我做视频没人看一样,现在感觉学什么都难,找不回当初那种学会了/做出来了的那种喜悦感了。开源项目也是,做的东西相对平庸,感觉没有什么太大的亮点,知道并使用的人并不太多。真要问我想做什么,其实想重构下方块播放器,这玩意的现有代码有 Bug,且打算参考 React 这边写组件的经验重新来过(还是原生)测试群有一个特别奇葩的问题,在 Antd 的 InputNumber 组件里面输入 45 会变成 4.00 和 5.00,而我电脑效果正常是 45.00。
群聊时,show命令查看改群组未订阅的rss信息时,会错误的显示订阅群组信息,会该群组显示出来。
预期应该提示该群组未订阅。
运行一段时间就会报这个
Execution of job "check_update (trigger: interval[0:01:00], next run at: 2021-03-11 04:10:06 CST)" skipped: maximum number of running instances reached (1)
python3.9.1运行后提示错误
File "/usr/local/bin/python3/lib/python3.9/site-packages/feedparser.py", line 93, in <module>
_base64decode = getattr(base64, 'decodebytes', base64.decodestring)
AttributeError: module 'base64' has no attribute 'decodestring'
查了一下资料发现是因为feedparser版本导致的。
kurtmckee/feedparser#201
升级到feedparser6.0.0以后没有这个问题,建议依赖feedparser版本更新至6.0.0+
报错如下
AttributeError: 'NoneType' object has no attribute 'toString'
elf-rss版本2.2.6,代理软件已开,浏览器可正常访问推特
rss链接:Name:推特like
URL:https://rss.shab.fun/twitter/likes/leere1030
日志:
06-30 18:37:00 [WARNING] nonebot | 推特like 抓取失败!将重试最多 5 次!
06-30 18:37:14 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5jiNUUAAaSh
R.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:37:22 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5HzstNVUAY_Uq
-.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:37:35 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5ji7VkAMDyg
R.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:37:56 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5jjmVgAgmqE
-.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:37:56 [INFO] nonebot | 我的推特 新消息推送完毕,共计:1
06-30 18:38:03 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5jiNUUAAaSh
R.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:38:24 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5ji7VkAMDyg
R.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:38:45 [ERROR] nonebot | 图片[https://pbs.twimg.com/media/E5H5jjmVgAgmqE
-.jpg:orig]下载失败,有可能需要开启代理!
[WinError 121] 信号灯超时时间已到
06-30 18:38:46 [INFO] nonebot | 推特like 新消息推送完毕,共计:2
现在的 go-cqhttp 配置文件已经是 yaml 格式了,而且按照手册在部署过程中经常出现各种问题比如
ModuleNotFoundError: No module named 'nonebot.plugins.nonebot_plugin_apscheduler'
使用 nb install
时的参数也不一样了,并且没有引导界面
还经常出现 Value for scheme.scripts does not match
(参看这里)的问题,应该是和 Python 版本有关
本机环境是 Linux 5.11.16-arch1-1 Python 3.9.4
请问能否更新一下手册呢?(也请教一下上面的模块问题如何解决)
你好在更新之后会出现这样的报错
_03-08 18:07:06 [ERROR] apscheduler | Job "check_update (trigger: interval[0:03:00], next run at: 2021-03-08 18:10:06 CST)" raised an exception
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/local/lib/python3.8/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/site-packages/uvicorn/subprocess.py", line 62, in subprocess_started
target(sockets=sockets)
File "/usr/local/lib/python3.8/site-packages/uvicorn/main.py", line 390, in run
loop.run_until_complete(self.serve(sockets=sockets))
File "/usr/local/lib/python3.8/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "src/plugins/ELF_RSS2/RSSHUB/rsstrigger.py", line 14, in check_update
await RSS_Parsing.start(rss)
File "src/plugins/ELF_RSS2/RSSHUB/RSS_Parsing.py", line 106, in start
item_msg += await handle_summary(summary=item['summary'], rss=rss)
File "src/plugins/ELF_RSS2/RSSHUB/RSS_Parsing.py", line 227, in handle_summary
res_msg += await handle_img(html=summary_html, img_proxy=rss.img_proxy)
File "src/plugins/ELF_RSS2/RSSHUB/RSS_Parsing.py", line 380, in handle_img
img_str += '[CQ:image,file=base64://' + await get_pic_base64(str(img_path)) + ']'
File "src/plugins/ELF_RSS2/RSSHUB/RSS_Parsing.py", line 357, in get_pic_base64
async with aiofiles.open(path, mode='rb') as f:
File "/usr/local/lib/python3.8/site-packages/aiofiles/base.py", line 75, in aenter
self._obj = await self._coro
File "/usr/local/lib/python3.8/site-packages/aiofiles/threadpool/init.py", line 80, in open
f = yield from loop.run_in_executor(executor, cb)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
FileNotFoundError: [Errno 2] No such file or directory: 'home/pi/usbks32g/kk/ELF_RSS-2.0/data/imgs/2bdb60b5-3d12-483e-89bc-e652c348bbc5.jpg'
但却能在imgs路径下看到相关图片,而且重复的很多,如何解决,非常感谢
pathlib的路径不是str。。。不支持lab,大概是这个原因,我不是很确定len()这里获取的是啥
src/plugins/ELF_RSS2/plugins/RSSHUB/rsshub.py:204
src/plugins/ELF_RSS2/plugins/RSSHUB/rsshub.py:209
Could not find a version that satisfies the requirement pydantic~=1.7.3 (from -r requirements.txt (line 4)) (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.1)
No matching distribution found for pydantic~=1.7.3 (from -r requirements.txt (line 4))
订阅第三方https://yande.re/post/piclens?page=
运行一段时间就会出现
[WARNING] apscheduler | Execution of job "check_update (trigger: interval[0:05:00], next run at: 2021-03-13 18:58:47 CST)" skipped: maximum number of running instances reached (1)
场景是这样的:订阅了几个画师的推特 ,而且尽管屏蔽了转发和回复,但是还是有很多"废话" ,之前C98中止的时候基本每个订阅的画师都发推表示很伤心,昨天 冬コミ 延期了又集体发推。就是只转发包含图片的推特,而只有文字没有图片的"废话"则过滤掉。 这样也省API次数。
环境ubuntu16.04
1.sh install.sh
处
直接使用sh会报运算符错误。其实应该使用更强大的bash,也就是./install.sh
,前提是需要修改权限chmod a+x ./install.sh
2.install.sh
文件中
cp ./ELF_RSS /app
会导致目录结构为/app/ELF_RSS/
且不会复制隐藏文件,观察了一下后续的提示此处应该为cp -ar ./ELF_RSS/. /app
3.install.sh
运行中
参数依次为1 2
期间有报错如下
ERROR: nonebot-plugin-apscheduler 0.1.2 has requirement apscheduler<4.0.0,>=3.7.0, but you'll have apscheduler 3.6.3 which is incompatible.
4.修改完配置文件且利用install.sh
重启后
其实install.sh
运行完就有该错误
修改新install.sh文件的权限后,利用install.sh
查看日志如下
01-31 11:20:39 [INFO] nonebot | NoneBot is initializing...
Traceback (most recent call last):
File "pydantic/env_settings.py", line 167, in pydantic.env_settings.read_env_file
ModuleNotFoundError: No module named 'dotenv'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/nb", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/nb_cli/__init__.py", line 46, in run
run_bot(file, app)
File "/usr/local/lib/python3.8/site-packages/nb_cli/handlers.py", line 44, in run_bot
module = importlib.import_module(module_name)
File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "./bot.py", line 16, in <module>
nonebot.init()
File "/usr/local/lib/python3.8/site-packages/nonebot/__init__.py", line 174, in init
env = Env()
File "pydantic/env_settings.py", line 35, in pydantic.env_settings.BaseSettings.__init__
File "pydantic/env_settings.py", line 48, in pydantic.env_settings.BaseSettings._build_values
File "pydantic/env_settings.py", line 100, in pydantic.env_settings.BaseSettings._build_environ
File "pydantic/env_settings.py", line 169, in pydantic.env_settings.read_env_file
ImportError: python-dotenv is not installed, run `pip install pydantic[dotenv]`
手动运行nb run
没有问题
RSSHUB的import 变成 .RSSHUB,或者. 通过了编译器的检查,但运行时也出现问题,应该是包名问题?
哦,要在bot.py里写一个from bot import config
这个我就不造了
from nonebot import scheduler
可能是因为我个人的问题? 我的版本高,nonebot==2.0.0a7,nb-cli应该是3.0
12-16 09:13:30 [ERROR] nonebot | Failed to import "RSSHUB"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\RSSHUB\__init__.py", line 3, in <module>
from . import del_cache
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\RSSHUB\del_cache.py", line 2, in <module>
from bot import config
ImportError: cannot import name 'config' from partially initialized module 'bot' (most likely due to a circular import) (.\bot.py)
12-16 09:13:30 [ERROR] nonebot | Failed to import "add_dy"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\add_dy.py", line 1, in <module>
from RSSHUB import RSS_class, RWlist, rsstrigger as TR
ModuleNotFoundError: No module named 'RSSHUB'
12-16 09:13:30 [ERROR] nonebot | Failed to import "change_dy"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\change_dy.py", line 1, in <module>
from RSSHUB import rsstrigger as TR, RWlist
ModuleNotFoundError: No module named 'RSSHUB'
12-16 09:13:30 [ERROR] nonebot | Failed to import "del_dy"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\del_dy.py", line 1, in <module>
from RSSHUB import RWlist
ModuleNotFoundError: No module named 'RSSHUB'
12-16 09:13:30 [ERROR] nonebot | Failed to import "show_all"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\show_all.py", line 1, in <module>
from RSSHUB import RWlist
ModuleNotFoundError: No module named 'RSSHUB'
12-16 09:13:30 [ERROR] nonebot | Failed to import "show_dy"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\show_dy.py", line 1, in <module>
from RSSHUB import RWlist
ModuleNotFoundError: No module named 'RSSHUB'
12-16 09:13:30 [ERROR] nonebot | Failed to import "start"
Traceback (most recent call last):
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\anaconda3\envs\NoneBot-Plugin-Astrologian\Scripts\nb.exe\__main__.py", line 7, in <module>
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\__init__.py", line 46, in run
run_bot(file, app)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nb_cli\handlers.py", line 39, in run_bot
module = importlib.import_module(module_name)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File ".\bot.py", line 27, in <module>
nonebot.load_plugins("src/plugins")
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "src/plugins\ELF_RSS2\__init__.py", line 9, in <module>
_sub_plugins |= nonebot.load_plugins(
File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 889, in load_plugins
result = context.run(_load_plugin, module_info)
> File "d:\anaconda3\envs\nonebot-plugin-astrologian\lib\site-packages\nonebot\plugin.py", line 873, in _load_plugin
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "F:\QQbot\nonebot2_server\src\plugins\ELF_RSS2\plugins\start.py", line 2, in <module>
from bot import config
ImportError: cannot import name 'config' from partially initialized module 'bot' (most likely due to a circular import) (.\bot.py)
12-16 09:13:30 [INFO] nonebot | Succeeded to import "ELF_RSS2"
12-16 09:13:30 [INFO] nonebot | Running NoneBot...
12-16 09:13:30 [INFO] uvicorn | Started server process [15044]
12-16 09:13:30 [INFO] uvicorn | Waiting for application startup.
12-16 09:13:30 [INFO] uvicorn | Application startup complete.
12-16 09:13:30 [INFO] uvicorn | Uvicorn running on http://127.0.0.1:8080 (Press CTRL+C to quit)
环境信息:
运行系统:centos 7.8
Python 版本:3.8.3
ELF_RSS版本:ELF_RSS-2.2.0 最新版
go-cqhttp版本:v1.0.0-beta1 最新版
.env.prod
配置文件
IsLinux = true
RSS_PROXY = '127.0.0.1:51837'
本地代理(正常)
http://127.0.0.1:51837 或socks://127.0.0.1:51837
预期行为
正常发送rss源QQ信息给管理员QQ
实际行为
没有发送任何信息,正常生成 订阅名.json文件和imgs文件夹,但下载照片失败。
后台运行窗口报错信息如下:
感谢!!
PS C:\Users\Administrator> pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
第一步就报错,请问什么原因
部署教程对我等小白不太友好。。
nb-cli不用0.5.0吗
ELF_RSS/include/plugins/RSSHub/rsshub.py
Line 243 in 083d7ba
ELF_RSS/include/plugins/RSSHub/rsshub.py
Line 257 in 083d7ba
ELF_RSS/include/plugins/RSSHub/rsshub.py
Line 238 in 083d7ba
示例微博:/weibo/user/1797798792
RT,单文件文字条件下正常发出消息,有图片时无法发出.
Centos8+miraiOK+CQHTTPMirai环境
Delete Line 208 & 209 in include/plugins/RSSHub/rsshub.py
208 - imgs_name = re.sub(r'\', r'\\', imgs_name)
209 - imgs_name = re.sub(r'/', r'\\', imgs_name)
[2020-08-18 18:14:30,840 nonebot] INFO: 检查 test 更新
26
27
【💙配信告知💙】
🐕【雀魂公認】#くまたま〜じゃん-初心者犬山たまきが麻雀入門-【犬山たまき/熊谷タクマ】
🐕8月18日23時~24時
まさかの雀魂公認
犬山たまきの初心者麻雀企画がスタート🐶💙
くまくまに教わりながら楽しく麻雀やります🀄✨
配信タグ▶#くまたま~じゃん https://www.youtube.com/channel/UC8NZiqKx6fsDT3AVcMiVFyA/
[CQ:image,file=file:///\home\hakumio\ELF_RSS\data\imgs\49107c08-e196-43e6-acfc-6cfd6bac5016.jpg]
翻译:
[ 分布信号告诉知识 ]
[麻雀灵魂 PUBLIC 确认] #相当或是或〜季雅 n - 退房手续第一心脏用户狗山是或 有 ASA 麻雀输入门 - - 狗山是或退房手续 / 熊山谷 DATA 点击马]
8 18月 23日期时间 24 时间
或者的或 麻雀灵魂公共确定
狗山是或的退房手续首次心脏用户 ASA 麻雀企业图片 扫描 DATA 在门
相反或而或到教学“在一个是等音乐到而非 ASA 麻雀和在或到 S
分布信号数据灰色 #而或是或〜籍雅 n
[2020-08-18 18:14:40,095 nonebot] ERROR: QQ号960949576不合法或者不是好友 E:
18:14:40 [ERROR] [CQHTTPMirai] java.net.URISyntaxException: Illegal character in path at index 6: file:/\home\hakumio\ELF_RSS\data\imgs\49107c08-e196-43e6-acfc-6cfd6bac5016.jpg
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3105)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.(URI.java:588)
at java.net.URL.toURI(URL.java:964)
at tech.mihoyo.mirai.util.CQMessgeParserKt$tryResolveMedia$2.invokeSuspend(CQMessgeParser.kt:338)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
部署教程里https://github.com/Quan666/ELF_RSS/blob/2.0/docs/%E9%83%A8%E7%BD%B2%E6%95%99%E7%A8%8B.md,yml 配置 go-cqhttp缩进格式不对 。副行应该有个tab
运行后
root@iZj6cion0j2gl790ybvbekZ:~/ELF_RSS# nb run
01-23 21:43:14 [INFO] nonebot | NoneBot is initializing...
01-23 21:43:14 [INFO] nonebot | Current Env: prod
01-23 21:43:14 [DEBUG] nonebot | Loaded Config: {'driver': 'nonebot.drivers.fastapi', 'host': IPv4Address('0.0.0.0'), 'port': 8080, 'debug': True, 'api_root': {}, 'api_timeout': 30.0, 'access_token': None, 'secret': None, 'superusers': {'9143411193'}, 'nickname': {'elf', 'bot'}, 'command_start': {'', '/'}, 'command_sep': {'.'}, 'session_expire_timeout': datetime.timedelta(seconds=120), 'showblockword': True, 'close_pixiv_cat': False, 'pixiv_referer': 'http://www.pixiv.net', 'blockword': ['互动抽奖', '微博抽奖平台'], 'baiduid': '', 'usebaidu': False, 'blockquote': True, 'version': 'v2.0.3', 'delcache': 3, 'rsshub': 'https://rsshub.app', 'rsshub_backup': ['http://rss.shab.fun', 'http://rss.shab.fun'], 'limt': 50, 'baidukey': '', 'islinux': True, 'pixiv_proxy': 'i.pximg.net', 'rss_proxy': '127.0.0.1:7890', 'zip_size': 3072}
01-23 21:43:14 [DEBUG] nonebot | Succeeded to load adapter "cqhttp"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "nonebot.plugins.base"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "nonebot_plugin_apscheduler"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "RSSHUB"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "add_dy"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "change_dy"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "del_dy"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "show_all"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "show_dy"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "start"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "ELF_RSS2"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "elf_url"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "miyu"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "oneread"
01-23 21:43:14 [INFO] nonebot | Succeeded to import "ELF_URL"
01-23 21:43:14 [INFO] nonebot | Running NoneBot...
01-23 21:43:14 [DEBUG] nonebot | Loaded adapters: cqhttp
01-23 21:43:14 [INFO] uvicorn | Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
01-23 21:43:14 [INFO] uvicorn | Started reloader process [4548] using statreload
01-23 21:43:15 [INFO] nonebot | NoneBot is initializing...
01-23 21:43:15 [INFO] nonebot | Current Env: prod
01-23 21:43:15 [DEBUG] nonebot | Loaded Config: {'driver': 'nonebot.drivers.fastapi', 'host': IPv4Address('0.0.0.0'), 'port': 8080, 'debug': True, 'api_root': {}, 'api_timeout': 30.0, 'access_token': None, 'secret': None, 'superusers': {'9143411193'}, 'nickname': {'elf', 'bot'}, 'command_start': {'', '/'}, 'command_sep': {'.'}, 'session_expire_timeout': datetime.timedelta(seconds=120), 'blockquote': True, 'baiduid': '', 'zip_size': 3072, 'rss_proxy': '127.0.0.1:7890', 'limt': 50, 'pixiv_referer': 'http://www.pixiv.net', 'rsshub': 'https://rsshub.app', 'usebaidu': False, 'version': 'v2.0.3', 'blockword': ['互动抽奖', '微博抽奖平台'], 'delcache': 3, 'close_pixiv_cat': False, 'islinux': True, 'rsshub_backup': ['http://rss.shab.fun', 'http://rss.shab.fun'], 'showblockword': True, 'baidukey': '', 'pixiv_proxy': 'i.pximg.net'}
01-23 21:43:15 [DEBUG] nonebot | Succeeded to load adapter "cqhttp"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "nonebot.plugins.base"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "nonebot_plugin_apscheduler"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "RSSHUB"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "add_dy"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "change_dy"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "del_dy"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "show_all"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "show_dy"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "start"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "ELF_RSS2"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "elf_url"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "miyu"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "oneread"
01-23 21:43:15 [INFO] nonebot | Succeeded to import "ELF_URL"
01-23 21:43:15 [INFO] uvicorn | Started server process [4551]
01-23 21:43:15 [INFO] uvicorn | Waiting for application startup.
01-23 21:43:15 [INFO] nonebot_plugin_apscheduler | Scheduler Started
01-23 21:43:15 [INFO] uvicorn | Application startup complete.
机器人没有反馈运行成功信息,请教下是什么问题
使用的版本是Release 2.2.6
06-28 10:40:10 [INFO] nonebot | 狼叔WolF 检查更新
06-28 10:40:10 [ERROR] apscheduler | Job "check_update (trigger: interval[0:01:00], next run at: 2021-06-28 10:41:15 CST)" raised an exception
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/lib/python3.8/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.8/dist-packages/uvicorn/subprocess.py", line 61, in subprocess_started
target(sockets=sockets)
File "/usr/local/lib/python3.8/dist-packages/uvicorn/server.py", line 49, in run
loop.run_until_complete(self.serve(sockets=sockets))
File "/usr/local/lib/python3.8/dist-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "lzmbot/plugins/rss/RSS/util.py", line 13, in wrapper
return await asyncio.wait_for(
File "/usr/lib/python3.8/asyncio/tasks.py", line 483, in wait_for
return fut.result()
File "lzmbot/plugins/rss/RSS/my_trigger.py", line 16, in check_update
await rss_parsing.start(rss)
File "lzmbot/plugins/rss/RSS/rss_parsing.py", line 91, in start
write_rss(name=rss.name, new_rss=new_rss)
File "lzmbot/plugins/rss/RSS/rss_parsing.py", line 871, in write_rss
dump_f.write(json.dumps(old, sort_keys=True, indent=4, ensure_ascii=False))
File "/usr/lib/python3.8/json/init.py", line 234, in dumps
return cls(
File "/usr/lib/python3.8/json/encoder.py", line 201, in encode
chunks = list(chunks)
File "/usr/lib/python3.8/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/usr/lib/python3.8/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/usr/lib/python3.8/json/encoder.py", line 438, in _iterencode
o = _default(o)
File "/usr/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type SAXParseException is not JSON serializable
在图片下载失败时自动尝试重新下载
比较需要的是每天几点钟定时抓取一次...如果能有周和月就更好了
在 install.sh 中,原脚本为:
docker run --name elfrss -p 8080:8080 -v /app/:/app/ -e TZ=Asia/Shanghai -d elfrss:latest
而实际应该为:
docker run --name elfrss -p 8080:8080 -v /app/ELF_RSS/:/app/ -e TZ=Asia/Shanghai -d elfrss:latest
[ELF_RSS-2.1.7]# nb run
03-08 11:37:50 [INFO] nonebot | NoneBot is initializing...
Traceback (most recent call last):
File "/usr/local/python3/bin/nb", line 8, in <module>
sys.exit(main())
File "/usr/local/python3/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/python3/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/python3/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/python3/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/nb_cli/__init__.py", line 46, in run
run_bot(file, app)
File "/usr/local/python3/lib/python3.8/site-packages/nb_cli/handlers.py", line 44, in run_bot
module = importlib.import_module(module_name)
File "/usr/local/python3/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "./bot.py", line 16, in <module>
nonebot.init()
File "/usr/local/python3/lib/python3.8/site-packages/nonebot/__init__.py", line 175, in init
env = Env()
File "/usr/local/python3/lib/python3.8/site-packages/nonebot/config.py", line 38, in __init__
__pydantic_self__).__init__(**__pydantic_self__._build_values(
File "/usr/local/python3/lib/python3.8/site-packages/nonebot/config.py", line 53, in _build_values
return deep_update(self._build_secrets_files(_secrets_dir),
TypeError: 'NoneType' object is not callable
今天把1.3.7的版本删了,准备换2.x的版本,按照教程安装了requirement中的包,出现了不兼容,然后使用pip3 uninstall -r requirements.txt
卸载后再重新使用pip3 install -r requirements.txt
安装后无报错,运行run nb
后出现以上错误。配置文件中linux系统已经设置为true。
环境配置为:
个人感觉是不是nb的问题,因为没有用过也不清楚。
Version: v2.2.2
订阅哔哩哔哩直播开播路由时,运行出现重复“{rss.name}第一次抓取成功”问题。
附上测试用RSS订阅(不让上传json,改成txt上传了)
rss.txt
ERROR: 拉取RSS失败,可能是网络开了小差 E:'str' object has no attribute 'entries'
拉取rss更新时小概率出现如上提示。
未能复现,怀疑网络原因导致拉取到的rss xml为空或者解析为空
经过验证出现错误原因是checkUpdate(d, readRss(rss.name))
处参数d
为空(非null)
rsshub.py处理图片出错,mirai-native的图片是不落地的,但是我看代码cq码处理的是本地的图片,所以会报图片走丢啦!
idna==2.5 requests==1.21.1
缺少ujson
和msgpack
依赖
2.适配Python3.9(?
sed -i 's/base64.decodestring/base64.decodebytes/g' ${work dir}/${venv name}/lib/python3.9/site-packages/feedparser.py
以上是暂时的解决方法 记得自行更换目录
我看了下源码,貌似现在的消息构造逻辑大体是
这个流程是获取到更新马上就写入本地储存的json,如果在消息构造阶段(比如下载图片)中发生问题,异常处理会直接跳过本次操作,用户不会收到任何更新推送,而本次更新已经被写入本地缓存。
这样就会导致用户在无感的情况下错过本次更新,并且程序无法在下次检查更新中知道本次出现了错误并给予用户提示。
=============================================
其实说了这么多也是想问问这个项目的代理到底是怎么用的XD,配置文件里只有一个代理地址,这个代理是用于访问订阅源还是用于图片下载的啊,比如说我关注推特福利机(大雾),如果她发一条纯文字推是可以推送的,如果发的推带图片就会出现上面的情况,因为rss源不需要代理就能访问但是图片下不了。
关于配置文件中的代理地址:比如我在机场买了一些SSR节点(配置SSR的时候需要密码),那把地址直接填到配置文件是肯定没法用的。这样的话这个代理该如何搭建或者购买呢
日志信息
[2020-06-18 10:44:33,563 nonebot] ERROR: 图片下载失败 1 E:No host included in URL.
An open stream object is being garbage collected; call "stream.close()" explicitly.
描述与复现
订阅DLsite时出现推送混乱问题: 推送内容 :
【発売カレンダー: 同人誌・同人ゲーム・同人ボイス・ASMRのダウンロードなら「DLsite 同人 - R18」】更新了!
标题:眷族への福利厚生~夏~
内容:<div class="work_thumb"> <a href="https://www.dlsite.com/maniax/work/=/product_id/RJ291369.html" id="_link_RJ291369" class="work_thumb_inner" data-vue-component="thumb-img-popup" target="_blank"> ボイス・ASMR:https://www.dlsite.com/maniax/fsr/=/work_type/SOU
<dl class="work_2col"> <dt class="work_name"> <div class="icon_wrap"> <a href="https://www.dlsite.com/maniax/work/=/product_id/RJ291369.html" title="眷族への福利厚生~夏~" target="_blank">眷族への福利厚生~夏~</a> </dt> <dd class="maker_name"> ゆにクリエイト:https://www.dlsite.com/maniax/circle/profile/=/maker_id/RG49694.html
<span class="separator">/ <span class="author">赤月ゆに:https://www.dlsite.com/maniax/fsr/=/keyword_creater/%E8%B5%A4%E6%9C%88%E3%82%86%E3%81%AB
</dd> <dd class="work_price_wrap"> <span class="work_price">1,320/ <span class="work_point">120pt (10%還元) </dd> <dd class="work_text">水着の赤月ゆにが添い寝するバイノーラル</dd> <dd class="work_genre"> <span class="icon_GEN" title="全年齢">全年齢<span class="icon_TRI" title="体験版">体験版<span data-vue-component="product-coupon" data-product_id="RJ291369" v-cloak=""/> </dd> <dd class="search_tag"> 癒し:https://www.dlsite.com/maniax/fsr/=/genre/056/from/work.genre
バイノーラル/ダミヘ:https://www.dlsite.com/maniax/fsr/=/genre/496/from/work.genre
ASMR:https://www.dlsite.com/maniax/fsr/=/genre/497/from/work.genre
ささやき:https://www.dlsite.com/maniax/fsr/=/genre/503/from/work.genre
金髪:https://www.dlsite.com/maniax/fsr/=/genre/170/from/work.genre
</dd> <dd class="work_sales_info"> </dd> </dl> <div data-vue-component="product-item" data-product_id="RJ291369" data-layout="2column_v2" class="btn_2col"> <p id="_work_cart_RJ291369" class="work_cart"><a href="https://www.dlsite.com/maniax/cart/=/product_id/RJ291369.html" class="btn_cart _btn_cart " id="_btn_cart_RJ291369" title="カートに追加" target="_blank">カートに追加</a> <p id="_work_favorite_RJ291369" class="work_favorite"><a href="https://www.dlsite.com/maniax/mypage/wishlist/=/product_id/RJ291369.html" class="btn_favorite _btn_favorite" id="_btn_favorite_RJ291369" title="お気に入りに追加" target="_blank">お気に入りに追加</a>
翻译:
<DIV 类= “work_thumb”> <一个 HREF = “https://开头WWW .dlsite 的.com / maniax /工作/ = / PRODUCT_ID / RJ291369 的.html” ID = “_ link_RJ291369” 类= “work_thumb_inner” 数据 -vue -component = “拇指 -img -popup” 目标= “_空白”> <DL 类= “work_2col”> <DT 类= “work_name”> <DIV 类= “icon_wrap”> <一个 HREF =“https://开头WWW .dlsite 的.com / maniax /工作/ = / PRODUCT_ID / RJ291369 。 HTML “标题=” 眷族への福利厚生〜夏〜 “目标=” _空白“>眷族への福利厚生〜夏〜</A> </ DT> <DD 类= “maker_name”> <跨度类= “分隔符”> / <跨度类= “作者”> </ DD> <DD 类= “work_price_wrap”> <跨度类= “work_price”> 1320 / <跨度类= “work_point”> 120pt (10%还元) </ DD> <DD 类= “work_text”>水着の赤月ゆにが添い寝するバイノーラル</ DD> <DD 类=” work_genre “> <跨度类=” icon_GEN “标题=” 全年齢 “>全年齢<跨度类=” icon_TRI “标题=” 体験版“>体験版<跨度数据 -vue -component = “产品 -coupon” 数据 -product_id = “RJ291369” 符 v -cloak = “”/> </ DD> <DD 类= “SEARCH_TAG”> </ DD> <DD 类= “work_sales_info”> </ DD> < / DL> <DIV 数据 -vue -component = “产品 -Item” 数据 -product_id = “RJ291369” 数据 -layout = “2column_v2” 类= “btn_2col”> <p ID = “_ work_cart_RJ291369” 类= “work_cart”> <A HREF =“https://开头WWW .dlsite 的.com / maniax /车/ = / PRODUCT_ID / RJ291369 的.html “类=” btn_cart _btn_cart “ ID =” _ btn_cart_RJ291369 “标题=” カートに追加 “目标=” _ BL ANK “>カートに追加</A> <P ID =” _ work_favorite_RJ291369 “类=” work_favorite “> <A HREF =” https://开头WWW .dlsite .COM / maniax /我的空间/愿望清单/ = / PRODUCT_ID / RJ291369 的.html “类=” btn_favorite _btn_favorite “ ID =” _ btn_favorite_RJ291369 “标题=” お気に入りに追加 “目标=” _空白“>お気に入りに追加</一>
原链接:https://www.dlsite.com/maniax/work/=/product_id/RJ291369.html
日期:06月18日 10:44:33
订阅路由:/dlsite/new/maniax?filter_description=work_type/SOU
运行环境:
OS:Ubuntu18.04
ELF_RSS Version :V1.3.3
提示抓取失败,但是data文件夹中的xml文件更新到了最新,也没有推送到bot,麻烦帮忙康康。
[2020-10-19 16:42:31,825 nonebot] INFO: 检查 bangumi 更新
179
180
[2020-10-19 16:42:32,759 nonebot] ERROR: bangumi 抓取失败,请检查订阅地址是否正
确! E:module 'config' has no attribute 'showBlockword'
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asynci
o\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asynci
o\proactor_events.py", line 162, in _call_connection_lost
self._sock.shutdown(socket.SHUT_RDWR)
OSError: [WinError 10038] 在一个非套接字上尝试了一个操作。
就像这样.
https://s1.ax1x.com/2020/10/09/0B5hnJ.png
..
..
issues能直接贴图片嘛,第一次提,不是很熟悉QAQ~.
订阅地址中含有"&"符号时会转义成"&",会导致实际的订阅地址与预期不符
暂不清楚是nonebot的问题还是go-cqhttp的问题
本项目、nonebot2、go-cqhttp均为当日最新版,环境是ubuntu16.04
大佬好,我订阅了我的推特喜欢列表,有一定概率图片下载失败,服务器是阿里云windows2019数据中心版,python3.9,已开启ssr,订阅信息如下:
名称:涩图bot
订阅地址:https://rss.shab.fun/twitter/likes/leere1030
订阅QQ:['']
订阅群:['722970667', '']
更新时间:2
代理:True
翻译:False
仅标题:False
仅图片:False
下载种子:False
白名单关键词:None
黑名单关键词:None
种子自动下载功能未打开
是否上传到群:True
报错日志如下:
04-13 13:07:36 [INFO] nonebot | 涩图bot 检查更新
04-13 13:07:37 [INFO] nonebot | 算出的缩小比:0
04-13 13:07:37 [INFO] nonebot | Resize image to: 702x1215
04-13 13:07:37 [ERROR] nonebot | 图片下载失败,将重试 E:function takes exactly 1
argument (3 given)
04-13 13:07:37 [ERROR] apscheduler | Job "check_update (trigger: interval[0:02:0
0], next run at: 2021-04-13 13:09:45 CST)" raised an exception
Traceback (most recent call last):
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 354, in dowimg
return await get_pic_base64(pic.content,file_type)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 310, in get_pic_base64
im = await zipPic(content)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 304, in zipPic
pim[point[0], point[1]] = (random.randint(0, 255), random.randint(0, 255), r
andom.randint(0, 255))
TypeError: function takes exactly 1 argument (3 given)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.
py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\runpy.
py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\Scripts\nb
.exe_main.py", line 7, in
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nb_cli_init.py", line 46, in run
run_bot(file, app)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nb_cli\handlers.py", line 52, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nonebot_init.py", line 227, in run
get_driver().run(host, port, *args, **kwargs)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\nonebot\drivers\fastapi.py", line 160, in run
uvicorn.run(app or self.server_app,
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\uvicorn\main.py", line 386, in run
server.run()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\uvicorn\server.py", line 49, in run
loop.run_until_complete(self.serve(sockets=sockets))
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 629, in run_until_complete
self.run_forever()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 596, in run_forever
self._run_once()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\base_events.py", line 1890, in _run_once
handle._run()
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\site-p
ackages\apscheduler\executors\base_py3.py", line 30, in run_coroutine_job
retval = await job.func(*job.args, **job.kwargs)
File "src/plugins\ELF_RSS2\RSS\util.py", line 12, in wrapper
return await asyncio.wait_for(method(self, *args, **kwargs), timeout=time)
File "c:\users\administrator\appdata\local\programs\python\python39\lib\asynci
o\tasks.py", line 481, in wait_for
return fut.result()
File "src/plugins\ELF_RSS2\RSS\my_trigger.py", line 16, in check_update
await rss_parsing.start(rss)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 122, in start
item_msg += await handle_summary(summary=item['summary'], rss=rss)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 259, in handle_summary
res_msg += await handle_img(html=summary_html, img_proxy=rss.img_proxy)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 366, in handle_img
img_base64 = await dowimg(img.attr("src"), img_proxy)
File "src/plugins\ELF_RSS2\RSS\rss_parsing.py", line 357, in dowimg
raise BaseException
BaseException
在使用本项目过程中,订阅RSSHUB以外的订阅源时,因订阅项目为md语法,本项目并不支持,所以导致图片无法显示,希望能得到修复,十分感谢
附上订阅链接:https://south-plus.org/rss.php?fid=174
安装依赖时出现libxml,lxml相关错误,但系统软件lxml已是最新版本
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.