Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named win32api while using Scrapy

Tags:

I am a new learner of Scrapy. I installed python 2.7 and all other engines needed.

Then I tried to build a Scrapy project following the tutorial http://doc.scrapy.org/en/latest/intro/tutorial.html.

In the crawling step, after I typed scrapy crawl dmoz it generated this error message

ImportError: No module named win32api. [twisted] CRITICAL : Unhandled error in deferred 

I am using Windows.

Stack trace:

enter image description here
I am using Windows.

like image 652
李皓伟 Avatar asked Sep 15 '15 12:09

李皓伟


2 Answers

Try this.

pip install pypiwin32

like image 53
Alfan Dinda Rahmawan Avatar answered Sep 20 '22 04:09

Alfan Dinda Rahmawan


If you search a bit along the internet you will find the following documentation which describes what you have to do to install Py32Win: http://www.feedbackward.com/content/scrapy_install.pdf

Here are all the steps described you have to do. I did it with this document and now my Scrapy installation works on Windows.

like image 36
GHajba Avatar answered Sep 23 '22 04:09

GHajba