Python (Web Scrapping) - ошибка при запуске кроулера

User avatar
Monster02
Уже с Приветом
Posts: 213
Joined: 14 Aug 2011 23:37
Location: Baku > DC > NC > MA > CT

Python (Web Scrapping) - ошибка при запуске кроулера

Post by Monster02 »

I am trying to build a web scraper (http://doc.scrapy.org/en/0.24/intro/tut ... o-tutorial ), but when I am trying to launch the crawler, I am getting this error:

Code: Select all

Traceback (most recent call last):
  File "/Applications/anaconda/bin/scrapy", line 7, in <module>
    from scrapy.cmdline import execute
  File "/Applications/anaconda/lib/python2.7/site-packages/scrapy/__init__.py", line 50, in <module>
    from twisted import version as _txv
  File "/Applications/anaconda/lib/python2.7/site-packages/twisted/__init__.py", line 53, in <module>
    _checkRequirements()
  File "/Applications/anaconda/lib/python2.7/site-packages/twisted/__init__.py", line 37, in _checkRequirements
    raise ImportError(required + ": no module named zope.interface.")
ImportError: Twisted requires zope.interface 3.6.0 or later: no module named zope.interface.
The zope.interface seems to be in place:

Code: Select all

>pip freeze
...
>zope.interface==4.1.1
What could be the issue here?
User avatar
f_evgeny
Уже с Приветом
Posts: 10367
Joined: 12 Apr 2001 09:01
Location: Lithuania/UK

Re: Python (Web Scrapping) - ошибка при запуске кроулера

Post by f_evgeny »

Monster02 wrote: What could be the issue here?
First of all I would check sys.path
Дальше, все будет только хуже. Оптимист.

Return to “Вопросы и новости IT”