openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18557
[Bug 1083774] Re: can't map determine font family/bold/italic
27/Nov/2012 20:30:13] "POST /web/dataset/search_read HTTP/1.1" 200 -
2012-11-27 20:30:13,147 9597 INFO None werkzeug: 84.202.130.177 - - [27/Nov/2012 20:30:13] "GET /web/binary/image?model=res.partner&field=image_small&id=2&resize=&session_id=31c34f17046f462583fef304137314a6 HTTP/1.1" 304 -
2012-11-27 20:30:13,294 9597 INFO ? werkzeug: 84.202.130.177 - - [27/Nov/2012 20:30:13] "POST /web/session/eval_domain_and_context HTTP/1.1" 200 -
2012-11-27 20:30:13,752 9597 ERROR ? openerp.service.web_services: Exception: Can't map determine family/bold/italic for dejavu sans
handle_pageBegin args=()
Traceback (most recent call last):
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 736, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/report_sxw.py", line 442, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/report_sxw.py", line 476, in create_source_pdf
result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/report_sxw.py", line 533, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/interface.py", line 192, in create_pdf
obj.render()
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml.py", line 41, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 985, in parseNode
r.render(fp)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 310, in render
pt_obj.render(el)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 969, in render
self.doc_tmpl.build(fis)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 877, in build
self.clean_hanging()
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 510, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 757, in handle_flowable
f.apply(self)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 535, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 589, in render
cnv.render(self.node)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 572, in render
tags[n.tag](n)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 416, in _place
flows = _rml_flowable(self.doc, self.localcontext, images=self.images, path=self.path, title=self.title).render(node)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 873, in render
return process_story(node_story)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 866, in process_story
flow = self._flowable(node)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/report/render/rml2pdf/trml2pdf.py", line 742, in _flowable
result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/paragraph.py", line 827, in __init__
self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/paragraph.py", line 842, in _setup
style, frags, bulletTextFrags = _parser.parse(text,style)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/paraparser.py", line 1056, in parse
self.feed(text)
File "/usr/lib64/python2.7/site-packages/reportlab/lib/xmllib.py", line 562, in finish_starttag
self.handle_starttag(tag, method, attrs)
File "/usr/lib64/python2.7/site-packages/reportlab/lib/xmllib.py", line 596, in handle_starttag
method(attrs)
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/paraparser.py", line 796, in start_para
self._stack = [self._initial_frag(attr,_paraAttrMap)]
File "/usr/lib64/python2.7/site-packages/reportlab/platypus/paraparser.py", line 790, in _initial_frag
frag.fontName, frag.bold, frag.italic = ps2tt(style.fontName)
File "/usr/lib64/python2.7/site-packages/reportlab/lib/fonts.py", line 74, in ps2tt
raise ValueError("Can't map determine family/bold/italic for %s" % psfn)
ValueError: Can't map determine family/bold/italic for dejavu sans
handle_pageBegin args=()
2012-11-27 20:30:14,040 9597 ERROR None openerp.netsvc: Can't map determine family/bold/italic for dejavu sans
handle_pageBegin args=()
(<type 'exceptions.ValueError'>, ValueError("Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()",), <traceback object at 0x7f7670947f38>)
Traceback (most recent call last):
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 679, in dispatch
res = fn(db, uid, *params)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 784, in exp_report_get
return self._check_report(report_id)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 762, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/netsvc.py", line 67, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u"Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()", (<type 'exceptions.ValueError'>, ValueError("Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()",), <traceback object at 0x7f7670947f38>))
2012-11-27 20:30:14,043 9597 INFO None werkzeug: 84.202.130.177 - - [27/Nov/2012 20:30
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1083774
Title:
can't map determine font family/bold/italic
Status in OpenERP Addons (modules):
New
Bug description:
When trying to print invoice in latest trunk version:
s
handle_pageBegin args=()
2012-11-27 20:30:14,040 9597 ERROR None openerp.netsvc: Can't map determine family/bold/italic for dejavu sans
handle_pageBegin args=()
(<type 'exceptions.ValueError'>, ValueError("Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()",), <traceback object at 0x7f7670947f38>)
Traceback (most recent call last):
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 679, in dispatch
res = fn(db, uid, *params)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 784, in exp_report_get
return self._check_report(report_id)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/service/web_services.py", line 762, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/srv/openerp7/openerp-6.2dev-20121127-000102/openerp/netsvc.py", line 67, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u"Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()", (<type 'exceptions.ValueError'>, ValueError("Can't map determine family/bold/italic for dejavu sans\n handle_pageBegin args=()",), <traceback object at 0x7f7670947f38>))
Seems like a problem in the PDF generation. An absolute showstopper for me going to 7.0 at this time.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1083774/+subscriptions
References