Windows startup crash with asyncio NotImplementedError in Playwright
Describe the bug On Windows, running poetry run uvicorn main:app --reload --port 7001 crashes with NotImplementedError during Playwright startup probe. This happens because uvicorn --reload defaults to SelectorEventLoop on Windows, which does not support child process transports needed by Playwrigh
To Reproduce Steps to reproduce the behavior:
- Run the project on Windows.
- In backend/, run poetry run uvicorn main:app --reload --port 7001.
- Watch terminal during startup.
- See error: Task exception was never retrieved: NotImplementedError.
Screenshots of backend AND frontend terminal logs
Backend startup complete. Debug mode is DISABLED.
Task exception was never retrieved
future: <Task finished name='Task-3' coro=<Connection.run() done, defined at ...\playwright_impl_connection.py:305> exception=NotImplementedError()>
Traceback (most recent call last):
File "...\playwright_impl_transport.py", line 120, in connect
self._proc = await asyncio.create_subprocess_exec(...)
File "...\asyncio\base_events.py", line 528, in _make_subprocess_transport
raise NotImplementedError
NotImplementedError
[screenshot_preview] Chromium unavailable — tool disabled.
Source: abi/screenshot-to-code