Page 1 of 1

Python version

Posted: Mon Jul 30, 2012 6:51 pm
by saleem145
Hello,

I suspect my open office is using an old version of python as I cannot call the sorted function.

But if I run python on the terminal I have version 2.5 and I am able to use sorted.

Is this possible?? Thanks,

Saleem

Re: Python version

Posted: Mon Jul 30, 2012 7:09 pm
by saleem145
I added the following code to my script

import sys
print sys.version

I get 2.3.5

When I run on the terminal the python version is 2.5...

How do I get OpenOffice to use the later version of the python interpreter to run my script.

Thanks,

Saleem

Re: Python version

Posted: Mon Jul 30, 2012 8:34 pm
by Charlie Young
saleem145 wrote:I added the following code to my script

import sys
print sys.version

I get 2.3.5

When I run on the terminal the python version is 2.5...

How do I get OpenOffice to use the later version of the python interpreter to run my script.

Thanks,

Saleem
I have AOO 3.4 on Windows, and sorted() works fine for me. That version number looks low, however.
 Edit: I show version 2.6.1 

Re: Python version

Posted: Mon Jul 30, 2012 9:17 pm
by saleem145
Sorted is not part of python version 2.3.5 -- I have verified this. Thanks.