question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency issues on OSX 10.10.5

See original GitHub issue

Hi, I installed scrapy using pip and virtualenv.

Everything seems to go fine, but as I try to do anything I get this error:

Traceback (most recent call last):
  File "/Users/seb/stuff/scrapy/scrapy/bin/scrapy", line 7, in <module>
    from scrapy.cmdline import execute
  File "/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/scrapy/__init__.py", line 48, in <module>
    from scrapy.spiders import Spider
  File "/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/scrapy/spiders/__init__.py", line 10, in <module>
    from scrapy.http import Request
  File "/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/scrapy/http/__init__.py", line 11, in <module>
    from scrapy.http.request.form import FormRequest
  File "/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/scrapy/http/request/form.py", line 9, in <module>
    import lxml.html
  File "/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/lxml/html/__init__.py", line 42, in <module>
    from lxml import etree
ImportError: dlopen(/Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib
  Referenced from: /Users/seb/stuff/scrapy/scrapy/lib/python2.7/site-packages/lxml/etree.so
  Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

I tried updating lxml using pip, but I already have the latest version. Why is this happening?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kmikecommented, Sep 13, 2015

@sebiwi there are also updated install instructions for OS X in Scrapy master: check http://doc.scrapy.org/en/master/intro/install.html#mac-os-x.

0reactions
bryan0commented, Sep 15, 2016

I believe this error occurs when using pyenv or conda with python 2.7. I tried using different minor versions as well and could not get it to work. Just using brew python should work, but if you need more control over your python versions then Scrapy is not compatible for some reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OS X Yosemite 10.10.5 restarts unexpected…
Hi all,. My MacBook Air ( Yosemite 10.10.5 13-inch mid 2013) keeps randomly restarting. Thanks for your help!
Read more >
Mac OS X 10.10.5 error: Could not find a version of the ...
I'm using macports $ sh autogen.sh --enable-libc++ glibtoolize: putting auxiliary files in '.'. glibtoolize: copying file '.
Read more >
Mac OS 10.10.5 installation issues
Hello all,. I tried to run the install script for OS 10.9 on my MacBook Air (running 10.10.5) with Geoff Vasil, and encountered...
Read more >
Yosemite: Mac OS X 10.10 Compatibility Information
However, products with a hardware dependency, such as Maschine, Komplete Kontrol, Traktor, Guitar Rig and Controller Editor will not launch ...
Read more >
OS X 10.10.5 closes DYLD vulnerability, fixes bug and ...
The update also solves Mail compatibility problems with some email servers, and quashes a Photos bug that prevented importing GoPro videos.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found