Simplejson problem

28 views
Skip to first unread message

Oscar Alvarez

unread,
Jun 3, 2017, 4:38:09 PM6/3/17
to tryto...@googlegroups.com
Hi,


In Tryton 4.0 with python3 in virtualenv to install simplejson break
reports with this message:


31494 139829593347840 [2017-06-03 20:33:44,431] ERROR werkzeug Error on
request:
Traceback (most recent call last):
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/serving.py",
line 209, in run_wsgi
execute(self.server.app)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/serving.py",
line 197, in execute
application_iter = app(environ, start_response)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/werkzeug/wsgi.py",
line 600, in __call__
return self.app(environ, start_response)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/wsgi.py",
line 90, in __call__
return self.wsgi_app(environ, start_response)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/wsgi.py",
line 80, in wsgi_app
response = cls.response(data, request)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/trytond/protocols/jsonrpc.py",
line 160, in response
return Response(json.dumps(response, cls=JSONEncoder),
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/simplejson/__init__.py",
line 397, in dumps
**kw).encode(obj)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/simplejson/encoder.py",
line 291, in encode
chunks = self.iterencode(o, _one_shot=True)
File
"/home/psk/.virtualenvs/tryton40/lib/python3.5/site-packages/simplejson/encoder.py",
line 373, in iterencode
return _iterencode(o, 0)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 15:
invalid continuation byte


Remove simplejson from virtualenv solved the problem, "$pip uninstall
simplejson", so it maybe must to remove recommends install simplejson of
install docs?

Cédric Krier

unread,
Jun 3, 2017, 8:25:06 PM6/3/17
to tryto...@googlegroups.com
On 2017-06-03 15:38, Oscar Alvarez wrote:
> Remove simplejson from virtualenv solved the problem, "$pip uninstall
> simplejson", so it maybe must to remove recommends install simplejson of
> install docs?

No, we must fix it to work. But it is strange because simplejson is just
the development version of standard json.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages