Dependency issues on OSX 10.10.5
See original GitHub issueHi, 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:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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.