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

【错误回报】无法正常加载插件 #424

Open
WindraiteLesd opened this issue Sep 8, 2023 · 1 comment
Open

【错误回报】无法正常加载插件 #424

WindraiteLesd opened this issue Sep 8, 2023 · 1 comment

Comments

@WindraiteLesd
Copy link

运行环境

Windows Server 2022 Datacenter 21H2

HarukaBot 版本

1.6.0post5

go-cqhttp 版本

ws-plugin

错误描述

加载报错,偶尔能够正常加载

报错日志(如果有)

[ERROR] nonebot | Failed to import "haruka_bot"
Traceback (most recent call last):
  File "C:\ProgramData\miniconda3\Lib\site-packages\haruka_bot\utils\__init__.py", line 303, in on_startup
    asyncio.get_running_loop()
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 13, in <module>
  File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins
    return manager.load_all_plugins()
  File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins
    return set(
  File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\manager.py", line 177, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin
    module = importlib.import_module(name)
  File "C:\ProgramData\miniconda3\Lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "C:\ProgramData\miniconda3\Lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module
    super().exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\ProgramData\miniconda3\Lib\site-packages\haruka_bot\__init__.py", line 7, in <module>
    on_startup()
  File "C:\ProgramData\miniconda3\Lib\site-packages\haruka_bot\utils\__init__.py", line 309, in on_startup
    asyncio.get_event_loop().run_until_complete(check_playwright_env())
  File "C:\ProgramData\miniconda3\Lib\asyncio\events.py", line 677, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.
@kevinluo6191
Copy link

kevinluo6191 commented Sep 19, 2023

+1 已尝试卸载harukabot bilireq nonebot2并重装 无效
系统win1022H2专业版 1.6.0post5

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