i need quick help please

Asked by mohammed khalid

[2013-03-21 08:57:15,334][testing_itsf] ERROR:web-services:[01]: Exception: invalid literal for int() with base 10: '291.66667', while looking for faceName='DejaVuSans-Bold'
[2013-03-21 08:57:15,334][testing_itsf] ERROR:web-services:[02]: Traceback (most recent call last):
[2013-03-21 08:57:15,334][testing_itsf] 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-21 08:57:15,334][testing_itsf] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2013-03-21 08:57:15,334][testing_itsf] 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-21 08:57:15,334][testing_itsf] ERROR:web-services:[06]: fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[08]: return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[10]: pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[12]: obj.render()
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[14]: result = self._render()
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[16]: return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[18]: r.render(fp)
[2013-03-21 08:57:15,335][testing_itsf] 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-21 08:57:15,335][testing_itsf] ERROR:web-services:[20]: pt_obj.render(el)
[2013-03-21 08:57:15,335][testing_itsf] ERROR:web-services:[21]: File "/home/erp/Desktop/ERP1/openerp-server-6.0.3/bin/report/render/rml2pdf/trml2pdf.py", line 951, in render
[2013-03-21 08:57:15,335][testing_itsf] ERROR:web-services:[22]: self.doc_tmpl.build(fis)
[2013-03-21 08:57:15,335][testing_itsf] ERROR:web-services:[23]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 880, in build
[2013-03-21 08:57:15,335][testing_itsf] ERROR:web-services:[24]: self.handle_flowable(flowables)
[2013-03-21 08:57:15,335][testing_itsf] ERROR:web-services:[25]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 763, in handle_flowable
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[26]: if frame.add(f, canv, trySplit=self.allowSplitting):
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[27]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py", line 174, in _add
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[28]: flowable.drawOn(canv, self._x + self._leftExtraIndent, y, _sW=aW-w)
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[29]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 108, in drawOn
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[30]: self._drawOn(canvas)
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[31]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 89, in _drawOn
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[32]: self.draw()#this is the bit you overload
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[33]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 1302, in draw
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[34]: self._drawCell(cellval, cellstyle, (colpos, rowpos), (colwidth, rowheight))
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[35]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 1410, in _drawCell
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[36]: v.drawOn(self.canv,x,y)
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[37]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 108, in drawOn
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[38]: self._drawOn(canvas)
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[39]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 89, in _drawOn
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[40]: self.draw()#this is the bit you overload
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[41]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 995, in draw
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[42]: self.drawPara(self.debug)
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[43]: File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1383, in drawPara
[2013-03-21 08:57:15,336][testing_itsf] ERROR:web-services:[44]: tx.setFont(f.fontName, f.fontSize, leading)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[45]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/textobject.py", line 321, in setFont
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[46]: font = pdfmetrics.getFont(self._fontname)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[47]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 689, in getFont
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[48]: return findFontAndRegister(fontName)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[49]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 671, in findFontAndRegister
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[50]: face = getTypeFace(fontName)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[51]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 642, in getTypeFace
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[52]: afm = bruteForceSearchForAFM(faceName)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[53]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 228, in bruteForceSearchForAFM
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[54]: topDict, glyphDict = parseAFMFile(possible)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[55]: File "/usr/lib/python2.7/dist-packages/reportlab/pdfbase/pdfmetrics.py", line 110, in parseAFMFile
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[56]: width = string.atoi(r)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[57]: File "/usr/lib/python2.7/string.py", line 403, in atoi
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[58]: return _int(s, base)
[2013-03-21 08:57:15,337][testing_itsf] ERROR:web-services:[59]: ValueError: invalid literal for int() with base 10: '291.66667', while looking for faceName='DejaVuSans-Bold'

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serpent Consulting Services (serpent-consulting-services) said :
#1

Mohammed,

Did you add int() conversion somewhere in your report?

Thanks.

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.