Community mailing list archives
Re: error in reportlabby
Voedsel.Coop, Ronald Wopereis
i found the problem, although i haven't solved it (yet)
(1) in /tmp , the .html file is filled correctly, and the .pdf file is empty.
(2) upon running wkhtmltopdf manually, the .pdf file is generated correctly,
(3) but then wkhtmltopdf exits with this error:
"Exit with code 1 due to network error: ContentNotFoundError"
2015-09-26 20:34 GMT+02:00 Atul Patel <firstname.lastname@example.org>:
Hello,This problem is fonts dependency issue (times roman) not properly installed .
Sent from my iPhonethis is the process that hangs up the systemodoo 9416 1 0 17:03 ? 00:00:00 /usr/local/bin/wkhtmltopdf --cookie session_id 923e013b9491b1aac842c7994b856f2dca29d9b6 --quiet --page-width 211mm --page-height 296mm --margin-top 25 --dpi 80 --header-spacing 35 --margin-left 17 --margin-bottom 11 --margin-right 8 --orientation Portrait /tmp/report.body.tmp.eRvcVT.html /tmp/report.tmp.0cq9ov.pdfodafter 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.pdfwhen 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.1wkhtmltopdf --versionwkhtmltopdf 0.12.1 (with patched qt)so what could exactly be the problem?could it be the client no longer responding?any suggestions?thx, R2015-09-26 11:37 GMT+02:00 Ronald Wopereis <email@example.com>:restarting server does not solve the problem.what else can i try?any suggestion is much appreciatedbest regards, Ron2015-09-25 14:27 GMT+02:00 Houssine BAKKALI <firstname.lastname@example.org>: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.hi all,i get following error in reportlab when printing a barcode label :File "/usr/share/pyshared/reportlab/graphics/renderPM.py", line 221, in _setFontraise 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 Nonecreating 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