macports python-lxml dependency

35 views
Skip to first unread message

Niels Olson

unread,
Sep 19, 2009, 7:46:40 PM9/19/09
to PixelSnap Users
okay, so this has nothing to do with PixelSnap per se, but it points
out something awry elsewhere in the cosmos: I use the MacPorts build
of Inkscape, and this was the first extension I really wanted to try.
There are a number of extension dependencies, and one of those
dependencies, inkex.py, requires python's lxml, which I installed
through MacPorts (many moons ago, as a dependency for another package,
so lxml should be there, and working, but I checked anyway, and
macports py25-lxml package is definitely installed). So somehow it
seems that MacPorts Inkscape extensions can't find MacPorts lxml.

Which affects anyone with MacPorts Inkscape who want's to use the
marvelous PixelSnap extension.

Just wanted to get that recorded somewhere here. Will post to macports
trac too.

Bryan Hoyt

unread,
Sep 22, 2009, 12:43:23 AM9/22/09
to pixelsn...@googlegroups.com
Hi Niels,

Thanks for posting about this issue. I've added a link to this post in the INSTALL file for people who have similar problems. The updated INSTALL file will appear in the next release.

- Bryan

Bryan Hoyt

unread,
Sep 22, 2009, 12:48:21 AM9/22/09
to pixelsn...@googlegroups.com
P.S. I'm not currently aware of the simplest way to fix this, but as Niels describes, it's a MacPorts/Inkscape issue. I believe a similar problem exists for Windows builds of Inkscape.

Technically-minded people could probably figure out how to install lxml in a way that Inkscape is happy with, but I'm unaware of a simple fix.

If anyone finds one, post it here!

 - Bryan

Niels Olson

unread,
Sep 22, 2009, 5:29:28 PM9/22/09
to pixelsn...@googlegroups.com
I fixed the MacPorts Inkscape/lxml problem by building lxml from svn.
First I had to download cython (http://cython.org) and install

~/cython$ sudo python setup.py install

As I'm using the MacPorts variants; when I built lxml, I specified
these two things

sudo python setup.py install
--with-xslt-config=/opt/local/bin/xslt-config
--with-xml2-config=/opt/local/bin/xml2-config

Reply all
Reply to author
Forward
0 new messages