lxml not found?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
mreece
Posts: 2
Joined: Tue Feb 24, 2009 12:19 pm

lxml not found?

Postby mreece » Tue Feb 24, 2009 12:27 pm

I recently installed Inkscape on my Mac (OS X 10.5.6) from a .dmg file. I can't use any of the effects that involve lxml, getting the message "The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension."

If I run python from a terminal, I can "import lxml" with no error message:

Code: Select all

$ python
EPD with Py2.5 (4.0.30002 ) -- http://www.enthought.com/epd

Python 2.5.2 |EPD with Py2.5 4.0.30002 | (r252:60911, Oct 15 2008, 16:58:38)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from lxml import etree
>>>


But the error is coming from code in inkex.py that says:

Code: Select all

try:
    from lxml import etree
except:
    sys.exit('The fantastic lxml wrapper for libxml2 is required by inkex.py


So... what's going on?

mreece
Posts: 2
Joined: Tue Feb 24, 2009 12:19 pm

Re: lxml not found?

Postby mreece » Tue Feb 24, 2009 1:21 pm

Sorry, figured this one out... bin/inkscape was rearranging my $PATH.


Return to “Discuss Software Issues”