Community mailing list archives

Re: error in reportlab

Voedsel.Coop, Ronald Wopereis
- 09/26/2015 11:18:29
this is the process that hangs up the system
odoo      9416     1  0 17:03 ?        00:00:00 /usr/local/bin/wkhtmltopdf --cookie session_id 923e013b9491b1aac842c7994b856f2dca29d9b
6 --quiet --page-width 211mm --page-height 296mm --margin-top 25 --dpi 80 --header-spacing 35 --margin-left 17 --margin-bottom 11 --ma
rgin-right 8 --orientation Portrait /tmp/report.body.tmp.eRvcVT.html /tmp/report.tmp.0cq9ov.pdf

after killing the process 9416, i see this:
>> ls -l /tmp
-rw------- 1 odoo odoo 234670 sep 26 17:03 report.body.tmp.eRvcVT.html
-rw------- 1 odoo odoo      0 sep 26 17:03 report.tmp.0cq9ov.pdf

when i open the report.body file with my browser,
i get my report just the way i wanted it, including barcodes.

i restored wkhtmltopdf to version 0.12.1
wkhtmltopdf --version
wkhtmltopdf 0.12.1 (with patched qt)

so what could exactly be the problem?
could it be the client no longer responding?

any suggestions?
thx, R

2015-09-26 11:37 GMT+02:00 Ronald Wopereis <>:
​restarting server does not solve the problem.
what else can i try?
any suggestion is much appreciated
best regards, Ron​

2015-09-25 14:27 GMT+02:00 Houssine BAKKALI <>:
I recently got this error on some standard accounting report that was working well until the error arised and restarting the server solved the problem.

2015-09-25 0:08 GMT+02:00 Ronald Wopereis <>:
hi all,

i get following error in reportlab when printing a barcode label :

  File "/usr/share/pyshared/reportlab/graphics/", line 221, in _setFont
    raise RenderPMError, "Can't setFont(%s) missing the T1 files?\nOriginally %s: %s" % (fontName,s1,s2)
RenderPMError: Can't setFont(Times-Roman) missing the T1 files?
Originally <type 'exceptions.TypeError'>: makeT1Font() argument 2 must be string, not None

creating and filling the reportlab/fonts directory i tried, but then the odoo server hangs on the report, and won't come back unless i delete the fonts subdir and reboot the server.

to reproduce, i only need to do this:

and it gives me a 500 error.
in the odoo-error.log appears the very same error.

any suggestions would be very much welcome.
thx, Ron

Post to:

Post to: