Python version

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Python version

Post 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
OpenOffice 3.4.0
Mac OS X 10.5.8
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Re: Python version

Post 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
OpenOffice 3.4.0
Mac OS X 10.5.8
User avatar
Charlie Young
Volunteer
Posts: 1559
Joined: Fri May 14, 2010 1:07 am

Re: Python version

Post 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 
Apache OpenOffice 4.1.1
Windows XP
saleem145
Posts: 130
Joined: Mon Jul 02, 2012 4:47 pm

Re: Python version

Post by saleem145 »

Sorted is not part of python version 2.3.5 -- I have verified this. Thanks.
OpenOffice 3.4.0
Mac OS X 10.5.8
Post Reply