The "The fantastic lxml wrapper..." issue in OS X 10.7.1

General discussions about Inkscape.
Jmx
Posts: 49
Joined: Sun Dec 14, 2008 2:32 am

The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby Jmx » Fri Aug 26, 2011 1:23 am

Hi,

When trying to use the Extension->Modfify Path->Perspective filter in 0.48.1 (official and any of the latest dev snapshots)
i get the old "The fantastic lxml wrapper for libxml2 is required..." problem.
I have tried searching all over the net for a solution for this problem.
But i can't find any real answers to it, and it seems to have been a problem for years.

Does anyone know how this can be fixed?
I'm using OS X 10.7.1

Thanks a lot

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby ~suv » Fri Aug 26, 2011 1:55 am

Jmx wrote:I have tried searching all over the net for a solution for this problem.

Known issue with Inkscape on OS X Lion: Technically, the reason is that Apple installs a newer Python version as default on Lion (Python 2.7), and the Inkscape application bundle doesn't include python modules (lxml, numpy) for that version (python modules are version-specific).

Jmx wrote:But i can't find any real answers to it, and it seems to have been a problem for years.
Lion has been out for a few weeks only, and on Mac OS X Tiger, Leopard and Snow Leopard, python-based extensions work out-of-the-box in Inkscape 0.48 now (yes, for Snow Leopard, it took a while to get a fix into a stable release package (bug #482993).

Jmx
Posts: 49
Joined: Sun Dec 14, 2008 2:32 am

Re: The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby Jmx » Fri Aug 26, 2011 2:29 am

Thanks ~suv!

I used the EggBot2.2.2.r2 patch from your link and it worked great.
I thought that the needed python libraries was included in the Inkscape app to avoid these things?

Anyway... great forum for help Thanks :P

linebender
Posts: 57
Joined: Fri Feb 11, 2011 3:46 am

Re: The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby linebender » Fri Sep 02, 2011 12:56 am

~suv, are there any known issues with using the eggbot patch, above?

lb

wippersnapper
Posts: 2
Joined: Thu Dec 06, 2012 8:48 am

Re: The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby wippersnapper » Thu Dec 06, 2012 9:15 am

In case this helps anybody, here's how I resolved this issue for OSX 10.8.

Firstly, when you type 'python -V' in the Terminal it should report Python 2.7. (Mine did not as I had MacPython 2.6 installed, which clobbers the default Python on your path in ~/.bash_profile. If you cannot upgrade your Python to the default version this might not work, I couldn't get this problem solved while running Python 2.6.6 in my environment.)

In Termimal:

Code: Select all

sudo bash
export ARCHFLAGS='-arch i386 -arch x86_64'
export MACOSX_DEPLOYMENT_TARGET=10.8
export CC=gcc
easy_install pip  #(if not already installed, I prefer pip)
pip install lxml


Confirm that lxml installed in the correct directory:

Code: Select all

ls -l /Library/Python/2.7/site-packages/

wippersnapper
Posts: 2
Joined: Thu Dec 06, 2012 8:48 am

Re: The "The fantastic lxml wrapper..." issue in OS X 10.7.1

Postby wippersnapper » Thu Dec 06, 2012 9:21 am

Then after all that, a much simpler answer was found here: https://answers.launchpad.net/inkscape/+question/194132

D'oh!


Return to “General Discussions”