[lxml-dev] python crashes in xmlDictFree inside Zope
Gary Poster
gary at zope.com
Mon Jun 4 15:30:27 CEST 2007
On Jun 4, 2007, at 8:55 AM, David Pratt wrote:
> Hi Eric, let me know if you have any success with Macports libxml2. I
> could not get it to work a little while back. I am trying some
> binaries
> for mac from explain.com libxml2 2.6.26 at the moment to see how they
> will work out.
FWIW, I'm using zc.buildout to build a project-local (non-system-
installed) libxml2, libxslt, and lxml. This works out reasonably
well on the Mac (caveats below) and on other platforms (known success
on Centos/RHEL, Ubuntu). It's a bit of philosophy to not use the
system-installed libs for this, so you may not like this solution if
your philosophy differs on this point.
The big caveat on Mac is that you must start python with
DYLD_LIBRARY_PATH=/Users/gary/Dev/MYPROJECT/parts/libxml2/lib:/Users/
gary/Dev/MYPROJECT/parts/libxslt/lib
for the project-installed libraries to be found (otherwise you still
get the system ones). You can get around this by having a wrapper
script that inserts the values in the environment for you; for
instance, zdaemon will do it for you if so configured.
My zc.buildout setup is similar to what Martijn Faassen blogged about
last year. If anyone is interested I'll dig up the details--
particularly the differences.
Gary
More information about the lxml-dev
mailing list