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

local_proxy加载报错 #9

Open
WeiLanKing opened this issue Feb 2, 2023 · 0 comments
Open

local_proxy加载报错 #9

WeiLanKing opened this issue Feb 2, 2023 · 0 comments

Comments

@WeiLanKing
Copy link

`Task exception was never retrieved
future: <Task finished name='Task-4' coro=<Connection.run() done, defined at C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright_impl_connection.py:240> exception=NotImplementedError()>
Traceback (most recent call last):
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright_impl_connection.py", line 247, in run
await self._transport.connect()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright_impl_transport.py", line 132, in connect
raise exc
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright_impl_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
02-03 02:31:13 [ERROR] uvicorn | Traceback (most recent call last):
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\starlette\routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\starlette\routing.py", line 566, in aenter
await self.router.startup()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\starlette\routing.py", line 648, in startup
await handler()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_htmlrender_init
.py", line 25, in init
browser = await get_browser(**kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 60, in get_browser
return _browser or await init(**kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_htmlrender\browser.py", line 36, in init
_playwright = await async_playwright().start()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright\async_api_context_manager.py", line 51, in start
return await self.aenter()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright\async_api_context_manager.py", line 46, in aenter
playwright = AsyncPlaywright(next(iter(done)).result())
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\playwright_impl_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1667, in subprocess_exec
transport = await self._make_subprocess_transport(
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError

02-03 02:31:13 [ERROR] uvicorn | Application startup failed. Exiting.`

删除localproxy后报错

`[ERROR] nonebot | Failed to import "nonebot_plugin_pixivrank_search"
Traceback (most recent call last):
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\Scripts\nb.exe_main
.py", line 7, in
sys.exit(main())
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nb_cli\handlers\deploy.py", line 20, in run_bot
module = importlib.import_module(module_name)
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\noneBot2\webot.\bot.py", line 26, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\load.py", line 122, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\load.py", line 59, in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins
return set(
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 169, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\Users\1\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
super().exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_pixivrank_search_init
.py", line 5, in
from .data_source import get_pixiv_urls, download_pixiv_imgs, search_pixiv_urls
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_pixivrank_search\data_source.py", line 5, in
from .config import config
File "C:\Users\1\AppData\Local\pypoetry\Cache\virtualenvs\webot-bWFYmPaM-py3.10\lib\site-packages\nonebot_plugin_pixivrank_search\config.py", line 10, in
config = Config.parse_obj(get_driver().config)
File "pydantic\main.py", line 527, in pydantic.main.BaseModel.parse_obj
return cls(**obj)
File "pydantic\main.py", line 342, in pydantic.main.BaseModel.init
raise validation_error
pydantic.error_wrappers.ValidationError: 1 validation error for Config
local_proxy
field required (type=value_error.missing)`

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

1 participant