[GH-ISSUE #288] Windows 上 Playwright 兼容性问题:asyncio 子进程创建失败 #9655

Closed
opened 2026-06-12 10:21:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @jackal-black on GitHub (Jul 28, 2025).
Original GitHub issue: https://github.com/Shubhamsaboo/awesome-llm-apps/issues/288

在运行 ai_meme_generator_agent_browseruse 文件时,我遇到了以下错误:Windows系统上的Playwright兼容性问题,具体是asyncio子进程创建失败(NotImplementedError)

重现步骤
1、克隆或下载项目代码。

2、安装所有依赖项,确保使用的是适合 Windows 系统的版本。

3、运行 ai_meme_generator_agent.py 文件。

Image

错误日志
Image

环境

  • 操作系统: Microsoft Windows [版本 10.0.26100.4652]
  • Python 版本: Python 3.12.3
  • Playwright 版本: Version: 1.49.1
  • 依赖库版本:
    streamlit
    browser-use==0.1.26
    playwright==1.49.1
    langchain-openai
    langchain-anthropic
    asyncio
Originally created by @jackal-black on GitHub (Jul 28, 2025). Original GitHub issue: https://github.com/Shubhamsaboo/awesome-llm-apps/issues/288 在运行 ai_meme_generator_agent_browseruse 文件时,我遇到了以下错误:Windows系统上的Playwright兼容性问题,具体是asyncio子进程创建失败(NotImplementedError) **重现步骤** 1、克隆或下载项目代码。 2、安装所有依赖项,确保使用的是适合 Windows 系统的版本。 3、运行 ai_meme_generator_agent.py 文件。 <img width="2559" height="1154" alt="Image" src="https://github.com/user-attachments/assets/53e04090-eba8-467a-8c8d-284afa5c18a4" /> **错误日志** <img width="1190" height="277" alt="Image" src="https://github.com/user-attachments/assets/1562a173-d9c6-457f-b9ad-c4dabb5c007c" /> **环境** - 操作系统: Microsoft Windows [版本 10.0.26100.4652] - Python 版本: Python 3.12.3 - Playwright 版本: Version: 1.49.1 - 依赖库版本: streamlit browser-use==0.1.26 playwright==1.49.1 langchain-openai langchain-anthropic asyncio
Author
Owner

@Lw-Cui commented on GitHub (Jul 28, 2025):

That's because the requirements.txt file specifies browser-use==0.1.26, while this bug was fixed in a later commit

<!-- gh-comment-id:3126406843 --> @Lw-Cui commented on GitHub (Jul 28, 2025): That's because the `requirements.txt` file specifies `browser-use==0.1.26`, while this bug was fixed in a later [commit](https://github.com/browser-use/browser-use/commit/723bb2cb0ef4dcabb4347bc46577a4fa1336404e#diff-133fb5ab6fd0f21215ea397b343079329df895d68b0ec6fd601073f8a04f6c3d)
Author
Owner

@Barsit commented on GitHub (Dec 14, 2025):

我也遇到了这个问题。我添加这段代码解决了这个问题。

# 添加这一行来解决Windows兼容性问题
if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
<!-- gh-comment-id:3651173163 --> @Barsit commented on GitHub (Dec 14, 2025): 我也遇到了这个问题。我添加这段代码解决了这个问题。 ```python # 添加这一行来解决Windows兼容性问题 if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-llm-apps#9655