-1

/root/Python-2.7.11/craigslist_sample/craigslist_sample/spiders/test.py:1: ScrapyDeprecationWarning: Module scrapy.spider is deprecated, use scrapy.spiders instead from scrapy.spider import BaseSpider

yield self.engine.open_spider(self.spider, start_requests)

ImportError: No module named _sqlite3

1 Answers1

0

You have to install Python module sqlite3 (using pip) and/or C/C++ library sqlite3 (using installer normally used in your system - ie. apt-get in Debian)


Bisides you have to change scrapy.spider into scrapy.spiders (see s at the end) in file test.py

furas
  • 134,197
  • 12
  • 106
  • 148
  • i used a pip install sqlite3 but it displays a error "Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-spOHG2/sqlite3/ " – andrew venkat Oct 19 '16 at 05:13
  • create new question with full error message. There can be more usefull information. Maybe you have to install C/C++ library first. Or maybe message asks for C/C++ headers *.h so you have to install `sqlite3-dev` (using system installer). Or you have to install it as root (using `sudo` command) – furas Oct 19 '16 at 05:17
  • ya okay bro thank you i will create another question – andrew venkat Oct 19 '16 at 05:22
  • or try to find answer on SO or Google using other information from message. Maybe someone already answer for this problem. – furas Oct 19 '16 at 05:25
  • This is wrong, sqlite3 should not be downloaded using pip and indeed will give you a nice error to remind you of such **RuntimeError: Package 'sqlite3' must not be downloaded from pypi**. sqlite3 is part of the standard lib. – Padraic Cunningham Oct 19 '16 at 17:16