Version pf python used by extension

Discussion about writing code for Inkscape.
JAR
Posts: 2
Joined: Mon Jan 30, 2012 2:42 am

Version pf python used by extension

Postby JAR » Mon Jan 30, 2012 2:47 am

Dear community!

I could not find an answer to solve the following problem:
There are different versions of python installed on my system.

I do use Python3.2 as default (/usr/bin/python), but there is the extension TexText.
It does only work by using Python2.X.

Is there any possibility to control/ set, which version of Python will be used by extensions in Inkscape?
I don not want to have to change my symbolic links, depending of using Inkscape or other tools.

Looking forward to some short resolution!

Cheers
JAR
Last edited by JAR on Thu Mar 15, 2012 6:07 pm, edited 1 time in total.

JAR
Posts: 2
Joined: Mon Jan 30, 2012 2:42 am

Re: Version pf python used by extension

Postby JAR » Thu Mar 01, 2012 6:29 am

Does nobody has any suggestion?

jocaps
Posts: 5
Joined: Sun Mar 14, 2010 5:34 pm

Re: Version pf python used by extension

Postby jocaps » Wed Apr 04, 2012 4:05 am

JAR wrote:Does nobody has any suggestion?


Actually my TexText only worked in version 2.5.4 and then I did some changes in the python directories of Inkscape that made me work with higher version of python (I believe 2.6 in Inkscape). What I did was copy all the textext stuffs under the share\extensions directory of Inkscape (I use 4.8), and then additionally add the site-packages (cairo and etc.). I can't quite remember the exact details how I did that, but maybe you do it and then tell us if it went well. BTW inkscape doesn't use Python 3, how do you manage using python 3 in inkscape? Are you compiling it yourself? Inkscape internally takes it's own python version (and not your Python 3 version). To make TexText working you have to make it adaptable to the latest Python version shipped by inkscape (which is 2.6.4 if I can remember). If you are using windows I can send you (or give a link to) a zip file with all the textext stuffs internally installed so if you run inkscape from the extracted zip you will be able to use TexText with the latest stable version of inkscape


Return to “Programming”