nonebot / nonebot2

跨平台 Python 异步聊天机器人框架 / Asynchronous multi-platform chatbot framework written in Python
https://nonebot.dev
MIT License
6.17k stars 571 forks source link

Question: 从bot.py启动时出现异常 找不到插件 #2911

Closed M-tongle closed 3 months ago

M-tongle commented 3 months ago

操作系统

Linux

Python 版本

3.12.3

NoneBot 版本

2.0.0

适配器

Onebot v11 2.2.2

协议端

Lagrange 3.2.10

描述问题

在使用bot,py启动时产生错误,显示所有非内置插件都无法加载

复现步骤

1.用python3启动bot.py 2.出现错误ModuleNotFoundError: No module named 'nonebotplugin****'

期望的结果

No response

截图或日志

tongle@raspberrypi:~/tongle-bot$ python3 bot.py 
08-20 17:32:38 [SUCCESS] nonebot | NoneBot is initializing...
08-20 17:32:38 [INFO] nonebot | Current Env: prod
08-20 17:32:38 [SUCCESS] nonebot | Succeeded to load plugin "single_session" from "nonebot.plugins.single_session"
08-20 17:32:38 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_status"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_status'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_backup"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_backup'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_help"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_help'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_jrrp-n"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_jrrp-n'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_simplemusic"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_simplemusic'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_analysis_bilibili"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_analysis_bilibili'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_justsix"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_justsix'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_dog"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_dog'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_cloudsignx"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_cloudsignx'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_questionmark"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_questionmark'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_random_ban"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_random_ban'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_plus_one"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_plus_one'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_learning_chat"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_learning_chat'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_oddtext"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_oddtext'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_charpic"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_charpic'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_withdraw"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_withdraw'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_capoo"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_capoo'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot-plugin-renpin"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot-plugin-renpin'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_repesix"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_repesix'
08-20 17:32:38 [ERROR] nonebot | Failed to import "nonebot_plugin_antiinsult"
Traceback (most recent call last):
  File "/home/tongle/tongle-bot/bot.py", line 15, in <module>
    nonebot.load_from_toml("pyproject.toml")
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 131, in load_from_toml
    return load_all_plugins(plugins, plugin_dirs)
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/load.py", line 65, in load_all_plugins
    return manager.load_all_plugins()
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 203, in load_all_plugins
    return set(
  File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 204, in <genexpr>
    filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "/home/tongle/.local/lib/python3.12/site-packages/nonebot/plugin/manager.py", line 167, in load_plugin
    module = importlib.import_module(self._third_party_plugin_ids[name])
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_antiinsult'
shoucandanghehe commented 3 months ago

建议去Discussions问这种问题 其次看起来你没有使用虚拟环境,你确定装插件了吗