Windows 上 Playwright 兼容性问题:asyncio 子进程创建失败 #72

Closed
opened 2025-11-06 14:32:22 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @jackal-black on GitHub (Jul 28, 2025).

在运行 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). 在运行 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

@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)
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#72