Problem with certain extensions after compiling Inkscape

Post questions on how to use or achieve an effect in Inkscape.
Buy Fifty Shades of Grey

Problem with certain extensions after compiling Inkscape

Postby Ailurus » Thu Jul 26, 2012 5:34 am

Hi,

A few days ago I compiled Inkscape from source, and it seemed to work just fine (even better than the standard install here on my Arch Linux system, for some reason it starts up much faster now!).

However, I just noticed that some extensions using "inkex.py" have a problem, namely

Code: Select all
Traceback (most recent call last):
  File "rtree.py", line 19, in <module>
    import inkex, simplestyle, pturtle, random
  File "/usr/local/share/inkscape/extensions/inkex.py", line 57
    u'sodipodi' :u'http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd',
              ^
SyntaxError: invalid syntax


I'm not entirely sure whether this is the right sub-forum to post this -- but what's causing this? Did I forget to satisfy certain dependencies, should I have somehow changed the configuration file before compiling, did I overlook something...? Thanks!
Ailurus
 
Posts: 111
Joined: Fri Oct 22, 2010 9:53 am
Location: Eindhoven, Netherlands

Re: Problem with certain extensions after compiling Inkscape

Postby ~suv » Thu Jul 26, 2012 10:42 am

What's the output of
Code: Select all
$ python --version

Inkscape's extensions are not (yet) compatible with python v3.x and require 'python' spawned by Inkscape to run the python-based extension scripts to be v2.x (without changes in the current sources, this refers to 'python' found in $PATH (or via /usr/bin/env)).

Either make sure that your default python links to python2 (at least at runtime, as seen by the inkscape process), or patch Inkscape's sources (see for example PKGBUILD (inkscape-bzr) for archlinux).

There might be additional information in archlinux' wiki about the migration from python2 to python3.
~suv
 
Posts: 1957
Joined: Sun May 10, 2009 2:07 am

Re: Problem with certain extensions after compiling Inkscape

Postby Ailurus » Thu Jul 26, 2012 8:57 pm

Ah of course, compatibility issues with Python :D. I didn't think of looking in the AUR for a suitable package. Thanks ~suv for helping me out again!
Ailurus
 
Posts: 111
Joined: Fri Oct 22, 2010 9:53 am
Location: Eindhoven, Netherlands


Return to Help with using Inkscape

Who is online

Users browsing this forum: No registered users and 13 guests