report printing error

Bug #1172252 reported by Francisco Pascual -- Ting!
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aeroo Reports
Fix Released
Undecided
Unassigned

Bug Description

Hi

I had migrated an openerp instalation, with aerooo reports working, i used:

- The same report_aeroo and report_aeroo_ooo openerp modules
- aerolib is installed
- openoffice-headless/writer/draw and calc too

And when i go to print any report i get this error (Versions are in the bug):

Regards

======================================================================================

2013-04-24 10:32:19,075 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [01]:
2013-04-24 10:32:19,075 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [02]: Environment Information :
2013-04-24 10:32:19,075 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [03]: System : Linux-2.6.32-38-generic-pae-i686-with-Ubuntu-10.04-lucid
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [04]: OS Name : posix
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [05]: Distributor ID: Ubuntu
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [06]: Description: Ubuntu 10.04.4 LTS
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [07]: Release: 10.04
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [08]: Codename: lucid
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [09]: Operating System Release : 2.6.32-38-generic-pae
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [10]: Operating System Version : #83-Ubuntu SMP Wed Jan 4 12:11:13 UTC 2012
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [11]: Operating System Architecture : 32bit
2013-04-24 10:32:19,076 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [12]: Operating System Locale : es_ES.UTF8
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [13]: Python Version : 2.6.5
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [14]: OpenERP-Server Version : 6.1-1
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [15]: Report generation error!
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [16]: Traceback (most recent call last):
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [17]: File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 422, in create_aeroo_report
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [18]: data = basic.generate(**oo_parser.localcontext).render().getvalue()
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [19]: File "/usr/local/lib/python2.6/dist-packages/aeroolib-1.0.0.RC4-py2.6.egg/aeroolib/plugins/base.py", line 51, in render
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [20]: return self.serializer(self.events)
2013-04-24 10:32:19,077 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [21]: File "/usr/local/lib/python2.6/dist-packages/aeroolib-1.0.0.RC4-py2.6.egg/aeroolib/plugins/opendocument.py", line 1203, in __call__
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [22]: content = TContent(serialized_stream)
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [23]: File "/usr/local/lib/python2.6/dist-packages/aeroolib-1.0.0.RC4-py2.6.egg/aeroolib/plugins/opendocument.py", line 809, in __init__
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [24]: self.tree = lxml.etree.parse(StringIO(content))
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [25]: File "lxml.etree.pyx", line 2692, in lxml.etree.parse (src/lxml/lxml.etree.c:49594)
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [26]: File "parser.pxi", line 1517, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:71540)
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [27]: File "parser.pxi", line 1545, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:71812)
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [28]: File "parser.pxi", line 1424, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:70673)
2013-04-24 10:32:19,078 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [29]: File "parser.pxi", line 938, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:67442)
2013-04-24 10:32:19,079 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [30]: File "parser.pxi", line 539, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:63824)
2013-04-24 10:32:19,079 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [31]: File "parser.pxi", line 625, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:64745)
2013-04-24 10:32:19,079 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [32]: File "parser.pxi", line 565, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:64088)
2013-04-24 10:32:19,079 3768 ERROR ? openerp.loglevels.deprecated.report_aeroo: [33]: XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1
2013-04-24 10:32:19,081 3768 ERROR ?
  File "/opt/openerp/server/openerp/service/web_services.py", line 710, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 679, in create
    return fnct(cr, uid, ids, data, report_xml, context)
  File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 557, in create_source_pdf
    return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
  File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 472, in create_single_pdf
    return self.create_aeroo_report(cr, uid, ids, data, report_xml, context=context, output=output)
  File "/opt/openerp/server/openerp/addons/report_aeroo/report_aeroo.py", line 428, in create_aeroo_report
    raise Exception(_("Aeroo Reports: Error while generating the report."), e, str(e), _("For more reference inspect error logs."))
Exception: (u'Aeroo Reports: Error while generating the report.', XMLSyntaxError(u"Start tag expected, '<' not found, line 1, column 1",), "Start tag expected, '<' not found, line 1, column 1", u'For more reference inspect error logs.')
2013-04-24 10:32:19,714 3768 ERROR ? openerp.netsvc: Aeroo Reports: Error while generating the report.
Start tag expected, '<' not found, line 1, column 1
Start tag expected, '<' not found, line 1, column 1
For more reference inspect error logs.
(<type 'exceptions.Exception'>, Exception(u'Aeroo Reports: Error while generating the report.', XMLSyntaxError(u"Start tag expected, '<' not found, line 1, column 1",), "Start tag expected, '<' not found, line 1, column 1", u'For more reference inspect error logs.'), <traceback object at 0xbf2ecd4>)
2013-04-24 10:45:17,716 3768 INFO template1 werkzeug: 192.168.215.15 - - [24/Apr/2013 10:45:17] "POST /xmlrpc/db HTTP/1.0" 200 -
2013-04-24 10:45:17,722 3768 INFO ? werkzeug: 192.168.215.15 - - [24/Apr/2013 10:45:17] "POST /xmlrpc/common HTTP/1.0" 200 -

Tags: aeroo hifly
Revision history for this message
sraps (Alistek) (erpsraps) wrote :

Could you provide templeate, so we can have a look? Please provide the data models you report on...

Changed in aeroo:
status: New → Incomplete
hifly (csnlca)
tags: added: aeroo hifly
Revision history for this message
Francisco Pascual -- Ting! (francisco-pascual) wrote :

I solved the problem, was the version of Ghensi python library that must be 0.6 and i had 0.7.

Regards

Revision history for this message
hifly (csnlca) wrote :

Thank you Francisco Pascual.
It works now.

Changed in aeroo:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.