Task exception was never retrieved
future: <Task finished name='Task-19' coro=<Connection.run() done, defined at c:\Users\phil\git\graphvec\.venv\Lib\site-packages\playwright\_impl\_connection.py:265> exception=NotImplementedError()>
Traceback (most recent call last):
File "C:\Users\phil\AppData\Local\Programs\Python\Python311\Lib\asyncio\tasks.py", line 277, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "c:\Users\phil\git\graphvec\.venv\Lib\site-packages\playwright\_impl\_connection.py", line 272, in run
await self._transport.connect()
File "c:\Users\phil\git\graphvec\.venv\Lib\site-packages\playwright\_impl\_transport.py", line 133, in connect
raise exc
File "c:\Users\phil\git\graphvec\.venv\Lib\site-packages\playwright\_impl\_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phil\AppData\Local\Programs\Python\Python311\Lib\asyncio\subprocess.py", line 223, in create_subprocess_exec
transport, protocol = await loop.subprocess_exec(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phil\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1708, in subprocess_exec
transport = await self._make_subprocess_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\phil\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 503, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
From some internet sleuthing it seems this is a problem specific to Windows?
If I put the code into a .py file and run it directly it does run correctly, so the environment is installed correctly, but it is a Jupyter-related invocation problem.
Idea or request for content:
If this is not supported on Windows, then the documentation should indicate as such.
If there is a Windows-specific workaround then that should be documented.
Ideally, of course, the example is copy-paste workable across all platforms.
The chromium loader likely needs to be re-written to support true async. It's relying right now on nest_asyncio which might not be supporting windows (and it appears to be an archived project now)
Checklist
Issue with current documentation:
On this page:
https://python.langchain.com/docs/integrations/document_loaders/async_chromium/
with a modified notebook cell:
I get this stacktrace:
From some internet sleuthing it seems this is a problem specific to Windows?
If I put the code into a
.py
file and run it directly it does run correctly, so the environment is installed correctly, but it is a Jupyter-related invocation problem.Idea or request for content: