Comments (20)
RuntimeError: Cannot load plugin "nonebot_plugin_apscheduler"!
05-05 10:19:51 [INFO] uvicorn | Started server process [287402]
05-05 10:19:51 [INFO] uvicorn | Waiting for application startup.
05-05 10:19:51 [ERROR] uvicorn | Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 621, in lifespan
async with self.lifespan_context(app):
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 518, in aenter
await self._router.startup()
File "/usr/local/lib/python3.9/dist-packages/starlette/routing.py", line 598, in startup
await handler()
File "/usr/local/lib/python3.9/dist-packages/splatoon2_tools/init.py", line 27, in start
get_cookies()
NameError: name 'get_cookies' is not defined
from splatoon2-bot.
试一试在bot.py的nonebot.init()
改为nonebot.init(apscheduler_autostart=True)
from splatoon2-bot.
您这边是怎么安装的插件 我这边自己使用插件方式安装 是没问题的
from splatoon2-bot.
如果还不行的话 pip install nonebot_plugin_apscheduler 装下这个 这个是nonebot的定时任务插件
from splatoon2-bot.
还是不行 我就是直接按照read me里面的安装方式安装 把您的插件卸载了后就可以正常运行了
from splatoon2-bot.
装了nonebot_plugin_apscheduler这个插件也不行吗 我自己这边把这个卸载了会出现你这个报错 但是装上之后就不会了
from splatoon2-bot.
对的 装了之后依旧是同样的报错
from splatoon2-bot.
还发现了貌似时区冲突?
raise utils.ZoneInfoNotFoundError(message)
tzlocal.utils.ZoneInfoNotFoundError: 'Multiple conflicting time zone configurations found:\n/etc/timezone: America/New_York\n/etc/localtime is a symlink to: Asia/Shanghai\nFix the configuration, or set the time zone in a TZ environment variable.\n'
05-05 14:30:54 [ERROR] nonebot | Failed to import "splatoon2_tools"
from splatoon2-bot.
您实在什么环境下运行的 docker吗
from splatoon2-bot.
debian11
from splatoon2-bot.
这边方便在您运行脚本的环境 把pip list 和 cat /etc/timezone的结果发我一下吗
from splatoon2-bot.
Package Version
anyio 3.5.0
APScheduler 3.9.1
arrow 1.2.2
asgiref 3.5.0
binaryornot 0.4.4
certifi 2020.6.20
chardet 4.0.0
charset-normalizer 2.0.12
chevron 0.14.0
click 8.1.2
colorama 0.4.4
cookiecutter 1.7.3
fastapi 0.73.0
h11 0.12.0
h2 4.1.0
hpack 4.0.0
httpcore 0.14.7
httplib2 0.18.1
httptools 0.4.0
httpx 0.22.0
hyperframe 6.0.1
idna 2.10
Jinja2 3.1.1
jinja2-time 0.2.0
loguru 0.6.0
lxml 4.8.0
MarkupSafe 2.1.1
multidict 6.0.2
nb-cli 0.6.6
nonebot-adapter-onebot 2.0.0b1
nonebot-plugin-apscheduler 0.1.2
nonebot-plugin-gocqhttp 0.5.2
nonebot-plugin-guild-patch 0.1.3
nonebot2 2.0.0b2
Pillow 9.1.0
pip 20.3.4
poyo 0.5.0
prompt-toolkit 3.0.29
psutil 5.9.0
py-cpuinfo 8.0.0
pycurl 7.43.0.6
pydantic 1.9.0
pyfiglet 0.8.post1
pygtrie 2.4.2
PySimpleSOAP 1.16.2
python-apt 2.2.1
python-dateutil 2.8.2
python-debian 0.1.39
python-debianbts 3.1.0
python-dotenv 0.20.0
python-slugify 6.1.1
pytz 2022.1
pytz-deprecation-shim 0.1.0.post0
PyYAML 6.0
reportbug 7.10.3+deb11u1
requests 2.25.1
rfc3986 1.5.0
setuptools 52.0.0
six 1.16.0
sniffio 1.2.0
starlette 0.17.1
text-unidecode 1.3
tomlkit 0.9.2
typing-extensions 4.2.0
tzdata 2022.1
tzlocal 4.2
urllib3 1.26.5
uvicorn 0.17.6
uvloop 0.16.0
watchgod 0.8.2
wcwidth 0.2.5
websockets 10.3
wheel 0.34.2
yarl 1.7.2
America/New_York
from splatoon2-bot.
这边看到您主机时区是纽约的 是否可以尝试换成 Asia/Shanghai 之后再尝试一下
from splatoon2-bot.
改过了 依旧不行
from splatoon2-bot.
可以看看时区是否生效了,看看有没有报之前时区的错。
如果生效了,我看你这边插件装的好像也没问题,我这边暂时没复现出来你这个报错,是否可以提供个远程窗口检查一下
from splatoon2-bot.
如果不方便的话 建议还是继续使用1.1.1版本 这边如果之后定位出问题 会回复
from splatoon2-bot.
[email protected] 这个是我的联系邮箱
from splatoon2-bot.
已发邮箱
from splatoon2-bot.
已经改好了,麻烦看一下邮箱
from splatoon2-bot.
from splatoon2-bot.
Related Issues (8)
- PIL生成图片的时候报错 OSError: cannot open resource HOT 2
- 卡顿 HOT 15
- 图片丢失 HOT 6
- 时间错误。 HOT 9
- 功能添加 HOT 1
- 功能寄了 功能寄了 HOT 1
- 插件在尝试读取本不需要读取的图片 导致报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splatoon2-bot.