Hello,
When i tried to print the general ledger from the account report i got this error message : SyntaxError: JSON.parse: unexpected end of data at line 2 column 1 of the JSON data, but i can print the others accounting reports.
My log file show me :
2014-11-05 14:50:01,807 1000 ERROR HIDS-PROD openerp.service.web_services: Exception: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
Traceback (most recent call last):
File "/opt/openerp/openerp/service/web_services.py", line 712, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/opt/openerp/openerp/report/report_sxw.py", line 449, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/opt/openerp/openerp/report/report_sxw.py", line 518, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/opt/openerp/openerp/report/report_sxw.py", line 540, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/opt/openerp/openerp/report/interface.py", line 206, in create_pdf
obj.render()
File "/opt/openerp/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/opt/openerp/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 "/opt/openerp/openerp/report/render/rml2pdf/trml2pdf.py", line 1036, in parseNode
r.render(fp)
File "/opt/openerp/openerp/report/render/rml2pdf/trml2pdf.py", line 328, in render
pt_obj.render(el)
File "/opt/openerp/openerp/report/render/rml2pdf/trml2pdf.py", line 1014, in render
self.doc_tmpl.build(fis,canvasmaker=NumberedCanvas)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 890, in build
self.handle_flowable(flowables)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 773, in handle_flowable
if frame.add(f, canv, trySplit=self.allowSplitting):
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/frames.py", line 161, in _add
w, h = flowable.wrap(aW, h)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 912, in wrap
self.width, self.height = _listWrapOn(self._content,availWidth,self.canv)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 579, in _listWrapOn
w,h = f.wrapOn(canv,availWidth,0xfffffff)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 121, in wrapOn
w, h = self.wrap(aW,aH)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 1173, in wrap
self._calc(availWidth, availHeight)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 625, in _calc
self._calc_height(availHeight,availWidth,W=W)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 556, in _calc_height
dW,t = self._listCellGeom(v,w or self._listValueWidth(v),s)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/tables.py", line 397, in _listCellGeom
vw, vh = v.wrapOn(canv, aW, aH)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/flowables.py", line 121, in wrapOn
w, h = self.wrap(aW,aH)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1036, in wrap
blPara = self.breakLines([first_line_width, later_widths])
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1244, in breakLines
words[0:0] = _splitWord(word,maxWidth-spaceWidth-currentWidth,maxWidths,lineno,fontName,fontSize,self.encoding)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 553, in _splitWord
R.append(_SplitText(wordText))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
2014-11-05 14:50:02,005 1000 ERROR HIDS-PROD openerp.netsvc: ascii
Péri
1
2
ordinal not in range(128)
(<type 'exceptions.UnicodeEncodeError'>, UnicodeEncodeError('ascii', u'P\xe9ri', 1, 2, 'ordinal not in range(128)'), <traceback object at 0x7fa8ab05f170>)
Traceback (most recent call last):
File "/opt/openerp/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/openerp/service/web_services.py", line 654, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/openerp/service/web_services.py", line 760, in exp_report_get
return self._check_report(report_id)
File "/opt/openerp/openerp/service/web_services.py", line 738, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/opt/openerp/openerp/netsvc.py", line 71, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'ascii\nP\xe9ri\n1\n2\nordinal not in range(128)', (<type 'exceptions.UnicodeEncodeError'>, UnicodeEncodeError('ascii', u'P\xe9ri', 1, 2, 'ordinal not in range(128)'), <traceback object at 0x7fa8ab05f170>)).
Please can you help me to solve this issue. Thank