Skip to main content


Showing posts from March, 2008


Phil finally gave me an excuse to beat lxml into submission.

And this is the result: wxVenus on OS X.

HOWTO: Install lxml on Mac OSX

lxml is a total nightmare to install on the Mac. For my own future sanity, this is how to do it.
Install MacPortsInstall libxml2: sudo port install libxml2Install libxslt: sudo port install libxsltMake sure DYLD_LIBRARY_PATH includes /opt/local/lib (I am a unix n00b and just edit ~/.bash_profile to have the lines:
in it and restart the shell)Get the lxml code: svn co lxmlInstall Easy_Install (surely you've done this already!)Install Cython: easy_install Cython== the lxml folder run python build --with-xslt-config=/opt/local/bin/xslt-configThen python installLook puzzled when python fails utterlyShrug that off quickly when lxml works generallyThis is for Tiger, it may work on other versions too.