web surfer agent running on windows #6453
Unanswered
sophiabouchama96
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using a builder.py file to define my web surfer agent in autogen. I'm encountering this error when adding this line
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
after defining my openai client:here is the error message:
Traceback (most recent call last): File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\autogen_ext\agents\web_surfer_multimodal_web_surfer.py", line 442, in on_messages_stream content = await self._generate_reply(cancellation_token=cancellation_token) File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\autogen_ext\agents\web_surfer_multimodal_web_surfer.py", line 469, in _generate_reply await self._lazy_init() File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\autogen_ext\agents\web_surfer_multimodal_web_surfer.py", line 319, in _lazy_init self._playwright = await async_playwright().start() File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\playwright\async_api_context_manager.py", line 51, in start return await self.aenter() File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\playwright\async_api_context_manager.py", line 46, in aenter playwright = AsyncPlaywright(next(iter(done)).result()) File "C:\Users\sophia.bouchama\aicrew04\venv\lib\site-packages\playwright_impl_transport.py", line 120, in connect self._proc = await asyncio.create_subprocess_exec( File "C:\Users\sophia.bouchama\AppData\Local\Programs\Python\Python310\lib\asyncio\subprocess.py", line 218, in create_subprocess_exec transport, protocol = await loop.subprocess_exec( File "C:\Users\sophia.bouchama\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1681, in subprocess_exec transport = await self._make_subprocess_transport( File "C:\Users\sophia.bouchama\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 498, in _make_subprocess_transport raise NotImplementedError NotImplementedError
I have been following this thread and trying to add the code fixes suggested here: #5557
Any advice would be greatly appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions