Inkex.py module requires PyXML

Bug #168744 reported by Bug Importer
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
JiHO

Bug Description

I tried to apply the perspective effect on a deformed quad and a text
trying to make a conic perspective of the text so it shows an error
message.

"Inkex.py module requires PyXML Please download the latest version from
<http://pyxml.sourceforge.net/>"

I have checked the site and last upgrade was since 2004.

I´m a standard user I really do not know how to build software to try to
use source for this package.

I guess I have to say I´m using a MacBook Intel Core 2 Duo 2 Ghz and 1 Gb
Ram, OSX.4.10 installed Python 2.5 and X11.

well thanks for read it.

Juan Carlos Meza Gómez
<email address hidden>

Tags: osx extensions
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Jiho: please close when the new lxml effects work out of the box on OSX

Revision history for this message
JiHO (jiho) wrote :

Originator: NO

Hello Juan Carlos,
There are 2 solutions to your problem:
- install a our precompiled python packages for python 2.3 (the one
shipped with OS X) and hence remove python 2.5. Download the python
packages (including pyXML) from there
http://inkscape.modevia.com/macosx-snap/?C=M;O=D (pick the one for Intel of
course). Open the dmg and drag and drop (the background image should make
things obvious).
- install pyXML manually if you need to keep python 2.5. this is really
easy and the steps involved are detailed there:
http://wiki.inkscape.org/wiki/index.php/CompilingMacOsX (at the bottom).

As bulia mentioned in his previous comment, pyXML will be droped in favor
of lxml soon. We'll provide precompiled versions of lxml too.

Let me know if everything does smoothly for you. Cheers,

Ryan Lerch (ryanlerch)
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Noah Balmer (noahbalmer) wrote :

I get an error like this from most of the effects. I installed PyXML as follows and still get the errors.
$cd /Library/Python/2.5/site-packages/PyXML-0.8.4/
$sudo python setup.py install
Compilation messages looked normal, no errors.
OSX10.5.1, inkscape 45.1, python 2.5

Revision history for this message
JiHO (jiho) wrote :

Marked as fixed since we're not using pyXML anymore and since python modules (lxml and numpy) are now integrated into the OS X application bundle.

Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
Kim_G (klg113) wrote :

I fixed this for the xmoto inkscape plugin by editing ~/.inkscape/extensions/inkex.py
and adding this line:

sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])

so it looks like this:

<...>
    return retval

sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])

try:
    import xml.dom.ext
    import xml.dom.minidom
    import xml.dom.ext.reader.Sax2
    import xml.xpath
<...>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.