BenoitTalbot / bungeni-portal

Automatically exported from code.google.com/p/bungeni-portal
0 stars 0 forks source link

PDF report generation broken on Ubuntu 10.04 #665

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PDF report generation using Openoffice does not work on Ubuntu 10.04.

The report renderer in bungeni explicitly looks for a python 2.5 installation 
associated with openoffice-uno. Openoffice in 10.04 is built with python 2.6 
bindings.

TO DO :

- remove the hard coded mapping to python2.5 
- introduce a parameter in deploy/debug.ini called something like ooo_python 
which specifies the path to the openoffice python. This parameter is then used 
by the report renderer as the openoffice python.

Original issue reported on code.google.com by ashok.ha...@gmail.com on 22 Jul 2010 at 7:20

GoogleCodeExporter commented 8 years ago
The path to openoffice is now defined in openoffice.zcml in the root folder of 
the installation

Original comment by mianonj...@gmail.com on 29 Jul 2010 at 3:46

GoogleCodeExporter commented 8 years ago
To be tested on 10.04 installation.

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 6:12

GoogleCodeExporter commented 8 years ago

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 6:13

GoogleCodeExporter commented 8 years ago
Tested on 10.04 -- failure traceback below :

2010-08-02 11:27:06,060 ERROR [SiteError] 
http://92.243.15.192:8080/business/preports/obj-1/pdf
Traceback (most recent call last):
  File "/home/undesa/cinst/bungeni/eggs/zope.publisher-3.6.3-py2.5.egg/zope/publisher/publish.py", line 133, in publish
    result = publication.callObject(request, obj)
  File "/home/undesa/cinst/bungeni/eggs/zope.app.publication-3.5.3-py2.5.egg/zope/app/publication/zopepublication.py", line 166, in callObject
    return mapply(ob, request.getPositionalArguments(), request)
  File "/home/undesa/cinst/bungeni/eggs/zope.publisher-3.6.3-py2.5.egg/zope/publisher/publish.py", line 108, in mapply
    return debug_call(obj, args)
  File "/home/undesa/cinst/bungeni/eggs/zope.publisher-3.6.3-py2.5.egg/zope/publisher/publish.py", line 114, in debug_call
    return obj(*args)
  File "/home/undesa/cinst/bungeni/src/bungeni.main/bungeni/ui/reports.py", line 117, in __call__
    renderer.run()
  File "/home/undesa/cinst/bungeni/eggs/appy-0.5.4-py2.5.egg/appy/pod/renderer.py", line 311, in run
    self.finalize()
  File "/home/undesa/cinst/bungeni/eggs/appy-0.5.4-py2.5.egg/appy/pod/renderer.py", line 416, in finalize
    self.callOpenOffice(resultOdtName, resultType)
  File "/home/undesa/cinst/bungeni/eggs/appy-0.5.4-py2.5.egg/appy/pod/renderer.py", line 384, in callOpenOffice
    raise pe
PodError: An error occurred during the conversion. Doc URL 
"/home/undesa/cinst/bungeni/src/bungeni.main/bungeni/ui/tmp/1280747664.615196.pd
f.temp/result.odt" is wrong. URL seems to be an unsupported one.
Segmentation fault

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 11:30

GoogleCodeExporter commented 8 years ago

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 11:41

GoogleCodeExporter commented 8 years ago
On ubuntu 10.04 -- you need to install *both* openoffice.org-headless and 
openoffice.org-writer 

In 8.04 installing openoffice.org-headless caused openoffice.org-writer to get 
installed as a dependent update -- this is no longer the case in 10.04.

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 11:55

GoogleCodeExporter commented 8 years ago

Original comment by ashok.ha...@gmail.com on 2 Aug 2010 at 11:56