[6.1] TypeError: coercing to Unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
When i'm clicking on "Stock Level Forecast" in products comes out an error
Client Traceback (most recent call last):
File "/usr/local/
r = method(controller, self, **self.params)
File "/usr/local/
req.
File "/usr/local/
result = self.connector.
File "/usr/local/
fault = xmlrpclib.
TypeError: coercing to Unicode: need string or buffer, tuple found
This error is only when the name of product on russian language. when name in english it works normal. Please help
affects: | openobject-client-web → openerp-web |
affects: | openerp-web → openerp-server |
affects: | openerp-server → openobject-server |
Hello service. web_services: Exception: 'charmap' codec can't encode characters in position 0-7: character maps to <undefined> openerp/ source/ server/ trunk/openerp/ service/ web_services. py", line 726, in go openerp/ source/ addons/ trunk/stock/ report/ product_ stock.py" , line 108, in create openerp/ source/ addons/ trunk/stock/ report/ stock_graph. py", line 101, in draw draw(self. _canvas) pymodules/ python2. 7/pychart/ area.py" , line 248, in draw legend. draw(self, legends, can) pymodules/ python2. 7/pychart/ legend. py", line 178, in draw width[col] , this_y) pymodules/ python2. 7/pychart/ legend. py", line 88, in draw show(x_ label, y, self.label) pymodules/ python2. 7/pychart/ basecanvas. py", line 503, in show text_show( font_name, nscale(size), color, str) pymodules/ python2. 7/pychart/ pdfcanvas. py", line 171, in text_show __write( "(%s) Tj " % (str.encode( 'mac_roman' ))) python2. 7/encodings/ mac_roman. py", line 12, in encode charmap_ encode( input,errors, encoding_ table) UnicodeEncodeEr ror'>, UnicodeEncodeEr ror('charmap' , u'\u0410\ u043d\u0430\ u0442\u043e\ u043b\u0438\ u0439 \u0623\ u0646\u0627\ u062a\u0648\ u0644\u064a \u963f\ u7eb3\u6258\ u5229 \u30a2\ u30ca\u30c8\ u30fc\u30ea\ u30fc \uc544\ ub098\ud1a8\ ub9ac \u0905\ u0928\u093e\ u0924\u094b\ u0932\u0940 \u0e2d\ u0e32\u0e19\ u0e32\u0e42\ u0e15\u0e25\ u0e35 \u0622\ u0646\u0627\ u062a\u0648\ u0644\u06cc' , 0, 8, 'character maps to <undefined>'), <traceback object at 0xb4d9e64>) openerp/ source/ server/ trunk/openerp/ netsvc. py", line 362, in dispatch_rpc getService( service_ name).dispatch( method, params) openerp/ source/ server/ trunk/openerp/ service/ web_services. py", line 669, in dispatch openerp/ source/ server/ trunk/openerp/ service/ web_services. py", line 774, in exp_report_get report( report_ id) openerp/ source/ server/ trunk/openerp/ service/ web_services. py", line 752, in _check_report abort_response( exc, exc.message, 'warning', exc.traceback) openerp/ source/ server/ trunk/openerp/ netsvc. py", line 67, in abort_response osv.osv. except_ osv(description , details) n\u0410\ u043d\u0430\ u0442\u043e\ u043b\u0438\ u0439 \u0623\ u0646\u0627\ u062a\u0648\ u0644\u. ..
Their is no connection between lp:956798and this bug.
Here Stock Graph report is generate using PyChart which is Independent to Server Report Engine.
Being more specific the trackback looks like this :
2012-08-29 06:05:34,223 5050 ERROR ? openerp.
Traceback (most recent call last):
File "/home/
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/
gt.draw()
File "/home/
ar.
File "/usr/lib/
self.
File "/usr/lib/
l.draw(ar, can, this_x, this_x + max_sample_
File "/usr/lib/
can.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
return codecs.
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-7: character maps to <undefined>
2012-08-29 06:05:34,436 5050 ERROR None openerp.netsvc: charmap
Анатолий أناتولي 阿纳托利 アナトーリー 아나톨리 अनातोली อานาโตลี آناتولی
0
8
character maps to <undefined>
(<type 'exceptions.
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self._check_
File "/home/
netsvc.
File "/home/
raise openerp.
except_osv: (u'charmap\