使用nonebot2出现Failed to get adapter list
作者:互联网
Traceback (most recent call last):
File "c:\users\admin\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\admin\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\Scripts\nb.exe\__main__.py", line 7, in <module>
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\nb_cli\commands\main.py", line 10, in init
create_project()
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\nb_cli\handlers\project.py", line 32, in create_project
adapters = {x.name: x for x in _get_adapters()}
File "c:\users\admin\appdata\local\programs\python\python37\lib\site-packages\nb_cli\handlers\adapter.py", line 172, in _get_adapters
raise RuntimeError("Failed to get adapter list.")
RuntimeError: Failed to get adapter list.
解决方法:
关掉系统代理(VPN等)。
标签:nonebot2,appdata,get,admin,adapter,py,File,line,local 来源: https://blog.csdn.net/C_C666/article/details/122590634