You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Jürgen Schmidt <jo...@gmail.com> on 2013/04/16 11:16:16 UTC

[CODE]: regression, Python won't work on MacOS

Hi,

during my work on the 3layer drop I noticed that Python don't work on
MacOSX. I thought it is a problem with my work but a cross check with
the trunk version showed that it is broken on trunk as well :-(

The first problem I notice is that in pythonloader.py and uno.py the
syntax for excpetions has changed, e.g.
except ImportError, e: -> except ImportError as e:

This seems to be the first error but changing this doesn't help.

Any ideas from the Python experts?


Juergen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [CODE]: regression, Python won't work on MacOS

Posted by Jürgen Schmidt <jo...@gmail.com>.
On 4/16/13 11:16 AM, Jürgen Schmidt wrote:
> Hi,
> 
> during my work on the 3layer drop I noticed that Python don't work on
> MacOSX. I thought it is a problem with my work but a cross check with
> the trunk version showed that it is broken on trunk as well :-(
> 
> The first problem I notice is that in pythonloader.py and uno.py the
> syntax for excpetions has changed, e.g.
> except ImportError, e: -> except ImportError as e:
> 
> This seems to be the first error but changing this doesn't help.
> 
> Any ideas from the Python experts?

forget to mention that I use Python 2.7.1 on MacOS at the moment.

> 
> 
> Juergen
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [CODE]: regression, Python won't work on MacOS

Posted by Jürgen Schmidt <jo...@gmail.com>.
On 4/16/13 3:31 PM, Ariel Constenla-Haile wrote:
> Hi Jürgen,
> 
> On Tue, Apr 16, 2013 at 11:16:16AM +0200, Jürgen Schmidt wrote:
>> Hi,
>> 
>> during my work on the 3layer drop I noticed that Python don't
>> work on MacOSX. I thought it is a problem with my work but a
>> cross check with the trunk version showed that it is broken on
>> trunk as well :-(
>> 
>> The first problem I notice is that in pythonloader.py and uno.py
>> the syntax for excpetions has changed, e.g. except ImportError,
>> e: -> except ImportError as e:
>> 
>> This seems to be the first error but changing this doesn't help.
> 
> Andre reported
> https://issues.apache.org/ooo/show_bug.cgi?id=122057#c2 that he
> couldn't install the Watching Window extension from 
> http://extensions.openoffice.org/en/project/watchingwindow on
> Windows, it might be broken there too (looks like a change tested
> only on *nix broke this).

I can test this extension, I found already a solution. We used a
really old Python coming with the platform SDK and is automatically
configured.
I have to improve configure on MacOS in a way to use the system python
under /Library/Framework and ensure that we use the 2.7 version.

I can't remember the reason why we use the system Python instead of
bundling it. But using 2.7.4 brings Python support back, at least the
HelloWorld.py script works.

The good thing for me is that is not bound to my 3 layer work ;-)

Juergen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: [CODE]: regression, Python won't work on MacOS

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Jürgen,

On Tue, Apr 16, 2013 at 11:16:16AM +0200, Jürgen Schmidt wrote:
> Hi,
> 
> during my work on the 3layer drop I noticed that Python don't work on
> MacOSX. I thought it is a problem with my work but a cross check with
> the trunk version showed that it is broken on trunk as well :-(
> 
> The first problem I notice is that in pythonloader.py and uno.py the
> syntax for excpetions has changed, e.g.
> except ImportError, e: -> except ImportError as e:
> 
> This seems to be the first error but changing this doesn't help.

Andre reported https://issues.apache.org/ooo/show_bug.cgi?id=122057#c2
that he couldn't install the Watching Window extension from
http://extensions.openoffice.org/en/project/watchingwindow on Windows,
it might be broken there too (looks like a change tested only on *nix
broke this).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina