kitUIN / nonebot-plugin-ncm

✨ 基于go-cqhttp与nonebot2的 网易云 无损音乐 点歌/下载 ✨
Apache License 2.0
81 stars 3 forks source link

报错 #28

Closed kLogos closed 4 months ago

kLogos commented 4 months ago

按照教程用nb下载后显示这些是为什么 Task exception was never retrieved future: <Task finished name='Task-3' coro=<Connection.run() done, defined at C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py:265> exception=NotImplementedError()> Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_connection.py", line 272, in run await self._transport.connect() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 133, in connect raise exc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect self._proc = await asyncio.create_subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1681, in subprocess_exec transport = await self._make_subprocess_transport( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport raise NotImplementedError NotImplementedError 07-11 20:07:26 [ERROR] uvicorn | Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 732, in lifespan async with self.lifespan_context(app) as maybe_state: File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 199, in aenter return await anext(self.gen) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\drivers\fastapi.py", line 153, in _lifespan_manager await self._lifespan.startup() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\driver_lifespan.py", line 42, in startup await self._run_lifespan_func(self._startup_funcs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\driver_lifespan.py", line 36, in _run_lifespan_func await cast(ASYNC_LIFESPAN_FUNC, func)() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender__init.py", line 38, in init browser = await get_browser(kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 61, in get_browser return _browser if _browser and _browser.is_connected() else await init(kwargs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 32, in init _playwright = await async_playwright().start() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 51, in start return await self.aenter() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright\async_api_context_manager.py", line 46, in aenter__ playwright = AsyncPlaywright(next(iter(done)).result()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\playwright_impl_transport.py", line 120, in connect self._proc = await asyncio.create_subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1681, in subprocess_exec transport = await self._make_subprocess_transport( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport raise NotImplementedError NotImplementedError

07-11 20:07:26 [ERROR] uvicorn | Application startup failed. Exiting.

kitUIN commented 4 months ago

这不是我插件引起的吧🤔

kLogos commented 4 months ago

确实,不好意思截错了,应该是这段: 07-11 20:48:53 [ERROR] nonebot | Failed to import "nonebot-plugin-ncm" Traceback (most recent call last): File "", line 1, in File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\spawn.py", line 122, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\spawn.py", line 131, in _main prepare(preparation_data) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\spawn.py", line 246, in prepare _fixup_main_from_path(data['init_main_from_path']) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\multiprocessing\spawn.py", line 297, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "", line 286, in run_path File "", line 98, in _run_module_code File "", line 88, in _run_code File "C:\Users\Administrator\Desktop\lhcbot——by鼠鼠0401\lhcbot\bot.py", line 30, in nonebot.load_from_toml("pyproject.toml") File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml return load_all_plugins(plugins, plugin_dirs) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins return manager.load_all_plugins() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins return set( File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\nonebot\plugin\manager.py", line 177, in filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin module = importlib.import_module(name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\importlib__init__.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1324, in _find_and_load_unlocked ModuleNotFoundError: No module named 'nonebot-plugin-ncm'

kitUIN commented 4 months ago

你确定安装该插件了吗?

kLogos commented 4 months ago

安装了的,能问一下删除插件的命令是什么吗,或许重新安装一下就可以了