Forums

running scrapy

Hi, I'am trying run scrapy command $ scrapy

but I get this error : ImmportError: Twinsted requires zope.interface 3.6.0 or later: no module zope.interface.

But,if I run $ pip install zope.interface I get: Requirement already satisfied: zope.interface in ./dist-packages

I am using python 2.7 What am doing wrong?

I don't think you're doing anything wrong. It looks like there's something wrong with our zope.interface installation. I have not idea what it might be, but I'll carry on investigating.

ok, thanks

@altux88, I believe the fix for zope.interface is working now. Give it a go and let me know. I'm still puzzled about what went wrong, but I'm working on it.

Did you solve this? I am still getting the exact same errors.

There seem to be some weird version dependencies going on there. Your best bet is to use a virtualenv. Create your virtualenv and then,

ln -s /usr/local/lib/python2.7/dist-packages/lxml-3.2.3-py2.7.egg-info/ <virtualenv directory>/lib/python2.7/site-packages
ln -s /usr/local/lib/python2.7/dist-packages/lxml/ <virtualenv directory>/lib/python2.7/site-packages
pip install scrapy

Thanks, I can confirm this as a workaround.

I can't get scrapy to work. What am I doing wrong?

$ scrapy startproject proj Traceback (most recent call last): File "/usr/local/bin/scrapy", line 4, in <module> execute() File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 131, in execute _run_print_help(parser, _run_command, cmd, args, opts) File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 76, in _run_print_help func(a, *kw) File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 138, in _run_command cmd.run(args, opts) File "/usr/local/lib/python2.7/dist-packages/scrapy/commands/startproject.py", line 48, in run shutil.copy(join(TEMPLATES_PATH, 'scrapy.cfg'), project_name) File "/usr/lib/python2.7/shutil.py", line 119, in copy copyfile(src, dst) File "/usr/lib/python2.7/shutil.py", line 82, in copyfile with open(src, 'rb') as fsrc:IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/scrapy/templates/project/scrapy.cfg'

Hi there, have you tried installing it into a virtualenv?