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

[BUG]无法运行 #88

Open
502milk opened this issue Apr 15, 2023 · 0 comments
Open

[BUG]无法运行 #88

502milk opened this issue Apr 15, 2023 · 0 comments
Labels
question Further information is requested

Comments

@502milk
Copy link

502milk commented Apr 15, 2023

描述 bug
插件无法运行

如何复现

  1. 我通过xxx 方式安装并导入了插件
  2. 在 xx 时候 xx 情况下,出现了 xx 问题

报错截图 (python的报错请截最下面)
“Started reloader with process [100748].
04-15 13:47:14 [SUCCESS] nonebot | NoneBot is initializing...
04-15 13:47:14 [INFO] nonebot | Current Env: prod
04-15 13:47:15 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
04-15 13:47:15 [SUCCESS] nonebot | Succeeded to load plugin "single_session" from "nonebot.plugins.single_session"
04-15 13:47:15 [ERROR] nonebot | Failed to import "nonebot_plugin_admin"
Traceback (most recent call last):
File "", line 14, in
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\load.py", line 125, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\load.py", line 62, in load_all_plugins
return manager.load_all_plugins()
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 175, in load_all_plugins
return set(
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 176, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\502\AppData\Local\Programs\Python\Python311\Lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot\plugin\manager.py", line 240, in exec_module
super().exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot_plugin_admin_init
.py", line 11, in
from . import (
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot_plugin_admin\broadcast.py", line 35, in
json_upload(broadcast_avoid_path, broadcast_config)
File "E:\Bot\nb\nbot.venv\Lib\site-packages\nonebot_plugin_admin\utils.py", line 381, in json_upload
with open(path, mode='w', encoding='utf-8') as c:
FileNotFoundError: [Errno 2] No such file or directory: 'config\广播排除群聊.json'
04-15 13:47:15 [SUCCESS] nonebot | Running NoneBot...
04-15 13:47:15 [INFO] logging | Started server process [100964]
04-15 13:47:15 [INFO] logging | Waiting for application startup.
04-15 13:47:15 [INFO] logging | Application startup complete.
04-15 13:47:15 [INFO] logging | Uvicorn running on http://127.0.0.1:1236 (Press CTRL+C to quit)
04-15 13:47:18 [INFO] logging | ('127.0.0.1', 58864) - "WebSocket /onebot/v11/ws/" [accepted]”

环境
win11 py 3.11.1 nb 2.0.0rc4

其他内容
...

@yzyyz1387 yzyyz1387 added the question Further information is requested label Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants