Trunk: Problem using webkit-module

Bug #922519 reported by René Glauser on 2012-01-27

This bug report was converted into a question: question #187478: Trunk: Problem using webkit-module.

20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Hello
I installed webkit-module and took care about installation-instructions. When I try to print a "bvr invoice" I always get the following error-messages:

[2012-01-27 09:30:58,836][?] INFO:werkzeug:192.168.0.68 - - [27/Jan/2012 09:30:58] "POST /web/session/eval_domain_and_context HTTP/1.1" 200 -
No LSB modules are available.
[2012-01-27 09:31:01,606][?] ERROR:web-services:[01]:
[2012-01-27 09:31:01,606][?] ERROR:web-services:[02]: Environment Information :
[2012-01-27 09:31:01,606][?] ERROR:web-services:[03]: System : Linux-2.6.32-38-server-x86_64-with-Ubuntu-10.04-lucid
[2012-01-27 09:31:01,606][?] ERROR:web-services:[04]: OS Name : posix
[2012-01-27 09:31:01,606][?] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2012-01-27 09:31:01,606][?] ERROR:web-services:[06]: Description: Ubuntu 10.04.3 LTS
[2012-01-27 09:31:01,606][?] ERROR:web-services:[07]: Release: 10.04
[2012-01-27 09:31:01,606][?] ERROR:web-services:[08]: Codename: lucid
[2012-01-27 09:31:01,606][?] ERROR:web-services:[09]: Operating System Release : 2.6.32-38-server
[2012-01-27 09:31:01,606][?] ERROR:web-services:[10]: Operating System Version : #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012
[2012-01-27 09:31:01,607][?] ERROR:web-services:[11]: Operating System Architecture : 64bit
[2012-01-27 09:31:01,607][?] ERROR:web-services:[12]: Operating System Locale : en_US.UTF8
[2012-01-27 09:31:01,607][?] ERROR:web-services:[13]: Python Version : 2.6.5
[2012-01-27 09:31:01,607][?] ERROR:web-services:[14]: OpenERP-Server Version : 6.1rc1
[2012-01-27 09:31:01,607][?] ERROR:web-services:[15]: Exception: [Errno 2] No such file or directory: '/tmp/webkit.tmp.7_hwhR.pdf'
[2012-01-27 09:31:01,607][?] ERROR:web-services:[16]: Traceback (most recent call last):
[2012-01-27 09:31:01,607][?] ERROR:web-services:[17]: File "/home/erp/openerp_trunk/server/openerp/service/web_services.py", line 728, in go
[2012-01-27 09:31:01,607][?] ERROR:web-services:[18]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2012-01-27 09:31:01,607][?] ERROR:web-services:[19]: File "/home/erp/openerp6.1rc1/addons/report_webkit/webkit_report.py", line 325, in create
[2012-01-27 09:31:01,607][?] ERROR:web-services:[20]: result = self.create_source_pdf(cursor, uid, ids, data, report_xml, context)
[2012-01-27 09:31:01,607][?] ERROR:web-services:[21]: File "/home/erp/openerp_trunk/server/openerp/report/report_sxw.py", line 498, in create_source_pdf
[2012-01-27 09:31:01,607][?] ERROR:web-services:[22]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2012-01-27 09:31:01,607][?] ERROR:web-services:[23]: File "/home/erp/openerp6.1rc1/addons/l10n_ch/report/report_webkit_html.py", line 317, in create_single_pdf
[2012-01-27 09:31:01,607][?] ERROR:web-services:[24]: pdf = self.generate_pdf(bin, report_xml, head, foot, htmls)
[2012-01-27 09:31:01,607][?] ERROR:web-services:[25]: File "/home/erp/openerp6.1rc1/addons/report_webkit/webkit_report.py", line 174, in generate_pdf
[2012-01-27 09:31:01,608][?] ERROR:web-services:[26]: pdf = file(out_filename, 'rb').read()
[2012-01-27 09:31:01,608][?] ERROR:web-services:[27]: IOError: [Errno 2] No such file or directory: '/tmp/webkit.tmp.7_hwhR.pdf'
[2012-01-27 09:31:01,823][?] ERROR:web.common.http.HttpRequest.dispatch:An error occurred while handling a json request
Traceback (most recent call last):
  File "/home/erp/openerp6.1rc1/openerp-web/addons/web/common/http.py", line 260, in dispatch
    r = method(controller, self, **self.params)
  File "/home/erp/openerp6.1rc1/openerp-web/addons/web/controllers/main.py", line 1643, in index
    req.session._db, req.session._uid, req.session._password, report_id)
  File "/home/erp/openerp6.1rc1/openerp-web/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/erp/openerp6.1rc1/openerp-web/addons/web/common/http.py", line 594, in send
    fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
TypeError: coercing to Unicode: need string or buffer, tuple found
[2012-01-27 09:31:01,831][?] INFO:werkzeug:192.168.0.68 - - [27/Jan/2012 09:31:01] "POST /web/report HTTP/1.1" 500 -

XaRz (perecastanyer) wrote :

Same here. But Important to say that the report in reports_webkit_sample is working well. Only my reports are not working and I presume is something about encoding?

I'm using Ubuntu 11.10, openerp 6.1 trunk.

I attach the log for debug purposes..

René Glauser (rene-glauser) wrote :

Yes. Also for me report base_sample is working well, but error happens when i try to print bvr_invoice. Until now I only tried with sample-reports and have now expririence with my personal reports yet.

XaRz (perecastanyer) wrote :

Perhaps it's obvious from somebody, but not for me till now. This bug says that is a web client ERROR. Perhaps the problem is not in the webkit engine...because c2c reports are working well.

Besides, this message is that point me in the encoding direction:

OpenERP WebClient Error
Client Traceback (most recent call last):
  File "/home/pere/openerp_v6/web/trunk/addons/web/common/http.py", line 260, in dispatch
    r = method(controller, self, **self.params)
  File "/home/pere/openerp_v6/web/trunk/addons/web/controllers/main.py", line 1647, in index
    req.session._db, req.session._uid, req.session._password, report_id)
  File "/home/pere/openerp_v6/web/trunk/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/home/pere/openerp_v6/web/trunk/addons/web/common/http.py", line 594, in send
    fault = xmlrpclib.Fault('warning -- ' + e.name + '\n\n' + e.value, '')
TypeError: coercing to Unicode: need string or buffer, tuple found

Hello,

I will have a look next week. Bug is maybe related to l10n_ch bvr_invoice that is maybe not anymore compatible with last fixes of webkit.

Regards

Nicolas

XaRz (perecastanyer) wrote :

If bug is related only to l10n_ch bvr_invoice then why my webkit reports don't work too if are base on report_webkit_sample?

My reports are working well on 6.03 and not in 6.1rc1...there are any significant change in the report_webkit_sample module in trunk??

Thanks.

René Glauser (rene-glauser) wrote :

hello
it seems that the problem has something to do with 64bit systems. When I follow the instructions on

https://github.com/jdpace/PDFKit/wiki

the error dissappears.

Amit Parik (amit-parik) wrote :

Hello Rene,

Thanks a lot for your reply on this!

Your last comment describe that the problem appear on the 64 bit system and which is resolved follow the instructions of above link.

So better way is I am converting this to question.

Thank you!

Changed in openobject-addons:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions