LibreOffice 4.x

Asked by Phil on 2013-05-23

Hi,

Don't know if you have ran into this yet.
LibreOffice 4.x is python 3.0 based on Mac OS X
Appy tosses syntax errors:

Traceback (most recent call last):
  File "variant_test2doc.py", line 85, in <module>
    renderer.run()
  File "/Library/Python/2.7/site-packages/appy/pod/renderer.py", line 394, in run
    self.finalize()
  File "/Library/Python/2.7/site-packages/appy/pod/renderer.py", line 560, in finalize
    raise PodError(CONVERT_ERROR % output)
appy.pod.PodError: An error occurred during the conversion. File "/Library/Python/2.7/site-packages/appy/pod/converter.py", line 125
    except (OSError, IOError), ioe:
                             ^
SyntaxError: invalid syntax

Works fine with LO 3.6.6.2 which is python 2.6.1.

Thank you for all your work on Appy.

Phil

Question information

Language:
English Edit question
Status:
Solved
For:
Appy Edit question
Assignee:
No assignee Edit question
Last query:
2013-05-23
Last reply:
2014-06-18
Arnaud (arnaudgeslin) said : #1

Hello
Don"t know if this could help, but there are major encoding differences between python 2.x and python 3.x. I gues Python3.x automatically converts string to unicode, this could deal with the syntax error you get.

Arnaud

Hi,
Maybe. The problem is Python2.x syntax. I have already performed some changes in a trial to produce Python syntax being compliant with both 2.x and 3.x, but there are more syntactic differences, ie in the way to catch exceptions. I continue my investigations and will keep you infomed!
Gaetan

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Phil (philip-oneill) said : #5

Hi Gaëtan,

Thank you for working on this.
I will download and test it out in our environment.

You time time working on this is greatly appreciated.

Phil

On Jun 18, 2014, at 8:37 AM, Gaëtan Delannay <email address hidden> wrote:

> Your question #229485 on Appy changed:
> https://answers.launchpad.net/appy/+question/229485
>
> Status: Expired => Solved
> Gaëtan Delannay changed the question status:
> Solved! Check duplicate at
> https://answers.launchpad.net/appy/+question/239944
>
> --
> You received this question notification because you asked the question.