please help me to solve this problem

Asked by mohammed khalid on 2013-03-20

[2013-03-20 09:56:20,751][asd] ERROR:web-services:[01]: Exception: Can't map determine family/bold/italic for dejavusans
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[02]: Traceback (most recent call last):
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[03]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/service/web_services.py", line 724, in go
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[05]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/report_sxw.py", line 418, in create
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[07]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/report_sxw.py", line 481, in create_source_pdf
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[09]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/report_sxw.py", line 503, in create_single_pdf
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[10]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[11]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/interface.py", line 193, in create_pdf
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[12]: obj.render()
[2013-03-20 09:56:20,751][asd] ERROR:web-services:[13]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/render.py", line 63, in render
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[14]: result = self._render()
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[15]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml.py", line 41, in _render
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[16]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[17]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 1004, in parseNode
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[18]: r.render(fp)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[19]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 303, in render
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[20]: pt_obj.render(el)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[21]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 942, in render
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[22]: fis += r.render(node_story)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[23]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 861, in render
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[24]: return process_story(node_story)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[25]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 854, in process_story
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[26]: flow = self._flowable(node)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[27]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 730, in _flowable
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[28]: result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[29]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 827, in __init__
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[30]: self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[31]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 842, in _setup
[2013-03-20 09:56:20,752][asd] ERROR:web-services:[32]: style, frags, bulletTextFrags = _parser.parse(text,style)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[33]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1056, in parse
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[34]: self.feed(text)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[35]: File "/usr/lib/python2.7/dist-packages/reportlab/lib/xmllib.py", line 562, in finish_starttag
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[36]: self.handle_starttag(tag, method, attrs)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[37]: File "/usr/lib/python2.7/dist-packages/reportlab/lib/xmllib.py", line 596, in handle_starttag
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[38]: method(attrs)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[39]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 796, in start_para
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[40]: self._stack = [self._initial_frag(attr,_paraAttrMap)]
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[41]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 790, in _initial_frag
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[42]: frag.fontName, frag.bold, frag.italic = ps2tt(style.fontName)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[43]: File "/usr/lib/python2.7/dist-packages/reportlab/lib/fonts.py", line 75, in ps2tt
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[44]: raise ValueError("Can't map determine family/bold/italic for %s" % psfn)
[2013-03-20 09:56:20,753][asd] ERROR:web-services:[45]: ValueError: Can't map determine family/bold/italic for dejavusans

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2013-03-20
Last reply:
2013-03-20

1. please provide a meaningful title for your question

2. do some research : typing the string "ValueError: Can't map determine family/bold/italic for dejavusans" in google showed numerous results

Answer is available on the OpenERP help forum at http://help.openerp.com/question/1459/how-to-solve-the-font-issue-cant-map-determine-familybolditalic-for-dejavu/

Can you help with this problem?

Provide an answer of your own, or ask mohammed khalid for more information if necessary.

To post a message you must log in.