I was also getting this error, which I believe was due to running scrapy with scrapy-playwright on a Windows machine. The scrapy-playwright documentation indicates that on Windows, scrapy and playwright have to run in different loops. My solution to this error was to run my code in a docker container which seems to have worked.