-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]插件导入失败 #225
Comments
nonebot-bison版本? |
nonebot-plugin-datastore in
c:\users\administrator\desktop\nbboot\fistbot\.venv\lib\site-packages
(0.6.0)
nonebot-bison in
c:\users\administrator\desktop\nbboot\fistbot\.venv\lib\site-packages
(0.7.0)
Luo Wei Zhi ***@***.***> 于2023年3月26日周日 16:25写道:
… nonebot-bison版本?
nonebot-plugin-datastore版本?
—
Reply to this email directly, view it on GitHub
<#225 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHGWKXRZBRLM67P7ELBFZV3W574N3ANCNFSM6AAAAAAWIAHZX4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
考虑使用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
03-26 15:12:25 [ERROR] nonebot | Failed to import "nonebot_bison"
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\NBBOOT\FistBot\bot.py", line 14, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\Administrator\Desktop\NBBOOT\FistBot.venv\Lib\site-packages\nonebot\plugin\load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\Administrator\Desktop\NBBOOT\FistBot.venv\Lib\site-packages\nonebot\plugin\load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\Administrator\Desktop\NBBOOT\FistBot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins
return set(
File "C:\Users\Administrator\Desktop\NBBOOT\FistBot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 169, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
根据报错信息可以看出,导入nonebot_bison插件失败了,原因是导入该插件时导入了sqlalchemy的ThreadLocalMetaData模块,但是该模块在sqlalchemy.schema中找不到。
可能的原因是sqlalchemy库版本太低或者安装不正确,或者nonebot_bison库中的代码有问题。
您可以尝试升级sqlalchemy库或重新安装nonebot_bison库。另外,您也可以在导入nonebot_bison之前先尝试单独导入sqlalchemy.schema,看看是否能正常导入。
但是并没有sqlalchemy库
The text was updated successfully, but these errors were encountered: