← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 681786] Re: [6.0RC1] Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n handle_pageBegin args=()'

 

** Summary changed:

- When trying to print a sale order : Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()' 
+ [6.0RC1] Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()'

-- 
[6.0RC1] Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()'
https://bugs.launchpad.net/bugs/681786
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: New

Bug description:
Hi,

Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()'

Since update of server 6.0 Rev. 3046, I get the message below when trying to print a sale order.
Impossible to print the report.
Working on Ubuntu 10.04
I think the following bug is also related to this one : https://bugs.launchpad.net/openobject-addons/+bug/681725?comments=all.


[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[01]: Exception: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()'
[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[02]: Traceback (most recent call last):
[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[03]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 721, in go
[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[04]:     (result, format) = obj.create(cr, uid, ids, datas, context)
[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[05]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 405, in create
[2010-11-26 12:26:33,105][openerpv6p1] ERROR:web-services:[06]:     fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2010-11-26 12:26:33,106][openerpv6p1] ERROR:web-services:[07]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 468, in create_source_pdf
[2010-11-26 12:26:33,106][openerpv6p1] ERROR:web-services:[08]:     return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2010-11-26 12:26:33,106][openerpv6p1] ERROR:web-services:[09]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/report_sxw.py", line 490, in create_single_pdf
[2010-11-26 12:26:33,106][openerpv6p1] ERROR:web-services:[10]:     pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2010-11-26 12:26:33,106][openerpv6p1] ERROR:web-services:[11]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/interface.py", line 190, in create_pdf
[2010-11-26 12:26:33,107][openerpv6p1] ERROR:web-services:[12]:     obj.render()
[2010-11-26 12:26:33,107][openerpv6p1] ERROR:web-services:[13]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/render.py", line 49, in render
[2010-11-26 12:26:33,107][openerpv6p1] ERROR:web-services:[14]:     result = self._render()
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[15]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml.py", line 42, in _render
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[16]:     return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[17]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 923, in parseNode
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[18]:     r.render(fp)
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[19]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 278, in render
[2010-11-26 12:26:33,108][openerpv6p1] ERROR:web-services:[20]:     pt_obj.render(el)
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[21]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 907, in render
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[22]:     self.doc_tmpl.build(fis)
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[23]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 874, in build
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[24]:     self.clean_hanging()
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[25]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 509, in clean_hanging
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[26]:     self.handle_flowable(self._hanging)
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[27]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 756, in handle_flowable
[2010-11-26 12:26:33,109][openerpv6p1] ERROR:web-services:[28]:     f.apply(self)
[2010-11-26 12:26:33,110][openerpv6p1] ERROR:web-services:[29]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
[2010-11-26 12:26:33,110][openerpv6p1] ERROR:web-services:[30]:     getattr(doc,arn)(*args)
[2010-11-26 12:26:33,110][openerpv6p1] ERROR:web-services:[31]:   File "/usr/lib/python2.6/dist-packages/reportlab/platypus/doctemplate.py", line 534, in handle_pageBegin
[2010-11-26 12:26:33,110][openerpv6p1] ERROR:web-services:[32]:     self.pageTemplate.onPage(self.canv,self)
[2010-11-26 12:26:33,111][openerpv6p1] ERROR:web-services:[33]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 532, in render
[2010-11-26 12:26:33,111][openerpv6p1] ERROR:web-services:[34]:     cnv.render(self.node)
[2010-11-26 12:26:33,112][openerpv6p1] ERROR:web-services:[35]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 517, in render
[2010-11-26 12:26:33,112][openerpv6p1] ERROR:web-services:[36]:     tags[n.tag](n)
[2010-11-26 12:26:33,112][openerpv6p1] ERROR:web-services:[37]:   File "/usr/local/lib/python2.6/dist-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 492, in setFont
[2010-11-26 12:26:33,112][openerpv6p1] ERROR:web-services:[38]:     raise KeyError('Font "%s" is not registered in the engine' % fname)
[2010-11-26 12:26:33,112][openerpv6p1] ERROR:web-services:[39]: KeyError: '\'Font "DejaVu Sans" is not registered in the engine\'\n   handle_pageBegin args=()'

Thanks





References