AttributeError: 'etree._ElementTree' object has no attribute
22 posts • Page 2 of 3 • 1, 2, 3
Re: AttributeError: 'etree._ElementTree' object has no attribute
I will take a look where to "accomodate" this info. Thank you, this will be very helpful to others.
Headless is not a requirement. For example, you can run OOo ordinary, just open ports, doing this way you will see document popping up, when doing conversion. Of course you would like to have it headless on real production server.
Re: AttributeError: 'etree._ElementTree' object has no attributeHi
Thanks for your help. Even after checking I had python-openoffice and lxml > 2.0 installed I still get the same issue ie <type 'exceptions.KeyError'>: u'odt' args = (u'odt',) message = u'odt' Any further ideas?
Re: AttributeError: 'etree._ElementTree' object has no attributeAnd about the "odt" error: Is the openerp code up to date? Take a look at the following bug already fixed:
https://bugs.launchpad.net/openobject-c ... bug/498180 Last edited by inaki on Tue Feb 09, 2010 10:02 pm, edited 1 time in total.
Re: AttributeError: 'etree._ElementTree' object has no attributeIt's not to do with a missing ODT action, as the line that was missing from actions.py is already present in my install.
Wish I did know what it was though Julian
Re: AttributeError: 'etree._ElementTree' object has no attributeThe allinone installer is now up to date with the missing libraries that report-openoffice asks for.
Nevertheless, I still get errors when testing report_openoffice_samples: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 682, in go (result, format) = obj.create(cr, uid, ids, datas, context) File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/report_openoffice/report_openoffice.py", line 290, in create return fnct(cr, uid, ids, data, report_xml, context) File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 426, in create_source_pdf return self.create_single_pdf(cr, uid, ids, data, report_xml, context) File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/report_openoffice/report_openoffice.py", line 247, in create_single_pdf processed_rml = self.preprocess_rml(etree.XML(rml),report_xml.report_type) File "lxml.etree.pyx", line 2421, in lxml.etree.XML (src/lxml/lxml.etree.c:23802) File "parser.pxi", line 1507, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:63888) ValueError: can only parse strings
Re: AttributeError: 'etree._ElementTree' object has no attributeLast error already reported at launchpad (sample reports are outdated):
https://bugs.launchpad.net/report-openo ... bug/515434
Re: AttributeError: 'etree._ElementTree' object has no attributeError obtained on Ubuntu 9.10 following the "How to create your first report" tutorial:
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 681, in go obj = netsvc.LocalService('report.'+object) File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 66, in __init__ self._service = SERVICES[name] KeyError: u'report.partner.sample.report' Same test and result on Ubuntu 8.04: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 681, in go obj = netsvc.LocalService('report.'+object) File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 66, in __init__ self._service = SERVICES[name] KeyError: u'report.partner.sample.report'
Re: AttributeError: 'etree._ElementTree' object has no attribute
This is because for some unknown reason report have not been registered as system service. Please try to provide a bit more info, what have you done just before this has happened...
Re: AttributeError: 'etree._ElementTree' object has no attributeI followed your tutorial, then click on Partners -> Partners -> click on one row (Axelor) -> click on "My Sample Report" on the right column.
Dunno how to provide more useful info..
Re: AttributeError: 'etree._ElementTree' object has no attribute
Got the same error on debian lenny with openErp 5.0.6. To solve this, change the report type from "pdf" to "OpenOffice - pdf output". Regards, Hervé
22 posts • Page 2 of 3 • 1, 2, 3
|
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED

