[Web2Py] admin 'ascii' codec can't decode error switching from python 2 to python 3

36 views
Skip to first unread message

Mamisoa Andriantafika

unread,
Oct 13, 2019, 7:18:14 AM10/13/19
to web2py-users
Hi,

I switched my current 2.18.5 Web2py installation from python 2 to python 3.

Creating a dummy new application, everything is working.

Using an older application, I get an error in trying to display error logs from admin:

Billet d'erreur for "admin"

Identifiant du Billet

127.0.0.1.2019-10-13.12-57-18.328cd60c-d65a-483e-a19c-045e4e39079d

<class 'UnicodeDecodeError'> 'ascii' codec can't decode byte 0xbb in position 1: ordinal not in range(128)

Version

web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
Python Python 3.6.8: /usr/bin/python3 (prefix: /usr)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/www-data/web2py/applications/admin/controllers/default.py", line 2021, in <module>
File "/home/www-data/web2py/gluon/globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "/home/www-data/web2py/applications/admin/controllers/default.py", line 1627, in errors
error = pickle.load(fullpath_file)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbb in position 1: ordinal not in range(128)

Error snapshot help

UnicodeDecodeError('ascii' codec can't decode byte 0xbb in position 1: ordinal not in range(128))


I already tried to remove all session files and pyc files.


I believe problem is linked to sqlite?


Mamisoa

Mamisoa Andriantafika

unread,
Oct 14, 2019, 4:55:39 AM10/14/19
to web2py-users
I did a fresh reinstallation and it works.

But I cannot point out where is the problem.
Reply all
Reply to author
Forward
0 new messages