Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

webbkit report traceback

By
internetact
on 10/1/13, 10:48 PM 833 views

Hi,

I've succeed in installing webkit-report module, but I always get the same error, at the moment I try to print the report or send it by mail (the moment the pdf is generated). In debug mode, I'm able to deal with an output in html, on which I can see my report's content.

This is the error :

Client Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, *self.params) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/controllers/main.py", line 1128, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/controllers/main.py", line 1120, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, params) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/email_template/wizard/mail_compose_message.py", line 89, in onchange_template_id values = self.generate_email_for_composer(cr, uid, template_id, res_id, context=context) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/email_template/wizard/mail_compose_message.py", line 141, in generate_email_for_composer template_values = self.pool.get('email.template').generate_email(cr, uid, template_id, res_id, context=context) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/email_template/email_template.py", line 342, in generate_email (result, format) = service.create(cr, uid, [res_id], {'model': template.model}, ctx) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/report_webkit/webkit_report.py", line 340, in create result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/report/report_sxw.py", line 513, in create_source_pdf return self.create_single_pdf(cr, uid, ids, data, report_xml, context) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/report_webkit/webkit_report.py", line 314, in create_single_pdf pdf = self.generate_pdf(bin, report_xml, head, foot, htmls) File "/usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/openerp/addons/report_webkit/webkit_report.py", line 165, in generate_pdf status = subprocess.call(command, stderr=stderr_fd) File "/usr/lib/python2.7/subprocess.py", line 493, in call return Popen(popenargs, *kwargs).wait() File "/usr/lib/python2.7/subprocess.py", line 679, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child raise child_exception OSError: [Errno 13] Permission non accordée

I've tried to change /usr/local/lib/python2.7/dist-packages/openerp-7.0_20130930_231020-py2.7.egg/ permissions to 0755 with chmod -R, it didn't work because a lot of files stay the property of root. I tried it directly on subfolders like openerp or addons. same issues. I've changed owner to openerp but it wasn't better. Always the same permission error message.

Any help ?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 10/1/13, 10:48 PM
Seen: 833 times
Last updated: 3/16/15, 8:10 AM