Skip to content
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

nonebot更新rc1后 插件报错 #21

Open
1717tian opened this issue Oct 18, 2022 · 4 comments
Open

nonebot更新rc1后 插件报错 #21

1717tian opened this issue Oct 18, 2022 · 4 comments

Comments

@1717tian
Copy link

Traceback (most recent call last): File "E:\zhenxun_bot\bot.py", line 15, in nonebot.load_plugins("extensive_plugin") File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot\plugin\load.py", line 45, in load_plugins return manager.load_all_plugins() File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins return set( File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot\plugin\manager.py", line 169, in filter(None, (self.load_plugin(name) for name in self.available_plugins)) > File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot\plugin\manager.py", line 145, in load_plugin module = importlib.import_module( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\importlib_init_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in load_unlocked File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module super().exec_module(module) File "", line 850, in exec_module File "", line 228, in call_with_frames_removed File "E:\zhenxun_bot\extensive_plugin\nonebot_plugin_mockingbird_init.py", line 10, in from nonebot import Driver, export, on_command ImportError: cannot import name 'export' from 'nonebot' (C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-X7m5lqsL-py3.9\lib\site-packages\nonebot_init.py)

@1717tian
Copy link
Author

删除了export相关调用后 插件运行正常

@wlz-remake
Copy link

我也是这个问题,如果修好了踹我()

@wlz-remake
Copy link

删除了export相关调用后 插件运行正常

只需要删除含有export字段的代码 插件就能正常运行了吗

@1717tian
Copy link
Author

删除了export相关调用后 插件运行正常

只需要删除含有export字段的代码 插件就能正常运行了吗

是的 这边跑了半个月 没异常报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants