Gerapy / GerapyPlaywright

Downloader Middleware to support Playwright in Scrapy & Gerapy
106 stars 24 forks source link

This package does not work on Windows #2

Open xiaoxiao0819 opened 2 years ago

xiaoxiao0819 commented 2 years ago

image 环境说明: scrapy 2.5.1 gerapy_playwright 0.2.2 Python 3.6

zhutuo commented 2 years ago

windows10 测试gerapy_playwright 0.2.2 出现同样问题。

zhutuo commented 2 years ago

可能问题出在 if sys.platform == 'win32': asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

_WindowsSelectorEventLoop 似乎是没有实现_make_subprocess_transport函数的。或许此问题暂时无解

Germey commented 2 years ago

Check this issue:https://github.com/scrapy-plugins/scrapy-playwright/issues/7#issuecomment-808824121

So, there is no solution on WIndows, I added a note on README.