Sagar Raj Singh Sagar Raj Singh - 1 year ago 319
Python Question

ImportError : cannot import name '_win32stdio'

I am working with Scrapy framework to scrap out data from website, but getting the following error in command prompt:


ImportError: cannot import name '_win32stdio'


Traceback is attached as a screenshot.

Kindly revert if require directory structure of my program's directory.

Error in CMD

Answer Source

Scrapy can work with Python 3 on windows if you make some minor adjustments:

  1. Copy the _win32stdio and _pollingfile to the appropriate directory under site-packages. Namely, twisted-dir\internet. Download these from https://github.com/twisted/twisted/tree/trunk/twisted/internet

  2. pip install pypiwin32

Granted, this is based on my personal experience. Because the repository will certainly change in the future, readers should beware the age of this answer.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download