Created
October 28, 2015 19:34
-
-
Save kahlos/c345448fab427db52ef6 to your computer and use it in GitHub Desktop.
Inkscape Missing libxml2 OSX Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have installed Inkscape via homebrew, so this may not work with the website binaries. | |
TL;DR fix: | |
Make sure you are using the system version of python, check with | |
which python | |
❯ /usr/bin/python | |
Install python package manager pip, if it isn't already | |
sudo easy_install pip | |
❯ | |
Use pip to install libxml into your system python | |
sudo pip install lxml | |
❯ Collecting lxml... | |
Fin. | |
Basically the problem is that Inkscape is hardcoded to use the system python build, to avoid conflicts with other python builds. But I presume in a recent update of OSX they have removed the libxml library from the system build. | |
Firstly I had to delete my homebrew install of python, it’s the same version (2.7.10) as the system build so no loss. Secondly, I needed to install pip to the system python using; | |
❯ sudo easy_install pip | |
Finally, I installed libxml to the system python install with; | |
❯ sudo pip install lxml | |
Hooray! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!