Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrapy error "No module named cmdline"

Tags:

python

scrapy

I've some problem with Scrapy on my mac, I checked many website to find an answer but I didn't find any good one.

Here's my error :

Traceback (most recent call last):
   File "scrapy-ctl.py", line 6, in <module>
      from scrapy.command.cmdline import execute
ImportError: No module named cmdline

I actually have Scrapy 0.16.3 ,Twisted 12.3.0, lxml 3.1beta1, libxml2 and libxslt

Thank you for your time !

like image 632
Genesor Avatar asked Feb 17 '23 21:02

Genesor


1 Answers

It took a while to work out and involved searching the scrapy github repository, but the cmdline module has moved. Instead of your current import, try this:

from scrapy.cmdline import execute
like image 181
Talvalin Avatar answered Feb 20 '23 16:02

Talvalin