09-23 08:33:09 [ERROR] nonebot | Failed to import "src.plugins.nonebot_plugin_picstatus"
Traceback (most recent call last):
File "c:\users\gao\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\gao\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\Scripts\nb.exe\__main__.py", line 7, in <module>
sys.exit(main())
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\nb_cli\handlers\deploy.py", line 20, in run_bot
module = importlib.import_module(module_name)
File "c:\users\gao\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File ".\bot.py", line 28, in <module>
nonebot.load_plugin('src.plugins.nonebot_plugin_picstatus')
File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\nonebot\plugin\load.py", line 28, in load_plugin
return manager.load_plugin(module_path)
> File "C:\Users\gao\AppData\Local\pypoetry\Cache\virtualenvs\nonebot2-fZWUG8nn-py3.9\lib\site-packages\nonebot\plugin\manager.py", line 144, in load_plugin
module = importlib.import_module(name)
File "c:\users\gao\appdata\local\programs\python\python39\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'src'
bot.py与env均已修改