Immutable solution version
NotImplemented error while running in windows.
Complete solution
Windows uses the Proactor event loop, which breaks the asyncio usage in scrapegraphai. Notebook users confirmed the fix is to apply nest_asyncio before running: Put this at the top of your notebook or script before creating the scraper graph. This applies to SmartScraperGraph and SearchGraph alike; the underlying cause is the same asyncio-on-Windows issue.
The problem
On Windows, running a scrapegraphai scraper (SmartScraperGraph or SearchGraph) crashes with an Uncaught app exception ending in NotImplementedError. The underlying cause is asyncio: Windows defaults to the Proactor event loop, which scrapegraphai does not handle.
The fix
Windows uses the Proactor event loop, which breaks the asyncio usage in scrapegraphai. Notebook users confirmed the fix is to apply nest_asyncio before running:
import nestasyncio nestasyncio.apply()
Put this at the top of your notebook or script before creating the scraper graph. This applies to SmartScraperGraph and SearchGraph alike; the underlying cause is the same asyncio-on-Windows issue.
Evidence
In gh:ScrapeGraphAI/Scrapegraph-ai#267 (https://github.com/ScrapeGraphAI/Scrapegraph-ai/issues/267), the reporter ran into this: On Windows, running a scrapegraphai scraper (SmartScraperGraph or SearchGraph) crashes with an Uncaught app exception ending in NotImplementedError. The underlying cause is asyncio: Windows defaults to the Proactor event loop, which scrapegraphai does not handle. The verified resolution: Windows uses the Proactor event loop, which breaks the asyncio usage in scrapegraphai. Notebook users confirmed the fix is to apply nest_asyncio before running:
import nestasyncio nestasyncio.apply()
Put this at the top of your notebook or script before creating the scraper graph. This applies to SmartScraperGraph and SearchGraph alike; the underlying cause is the same asyncio-on-Windows issue.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_J0vhct48mT90kFp-G92sMw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">NotImplemented error while running in windows. <span>— Vectle</span></a>