This seems to be a typical py2 py3 transition utf-8 error. I personally 
encountered before/ some googling and stackoverflow reading should solve 
your problem.

On Sunday, February 3, 2019 at 2:52:51 AM UTC-8, Maurice Waka wrote:
>
> I'm shifting my app to python3.6.
> When trying to edit from admin, I get this error;
> Traceback 
>
>  Traceback (most recent call last):
>  File "/home/mauricewaka/web2py/gluon/restricted.py", line 219, in 
> restricted
>  exec(ccode, environment)
>  File "/home/mauricewaka/web2py/applications/admin/controllers/default.py" 
> <http://127.0.0.1:8000/admin/default/edit/admin/controllers/default.py>, 
> line 2012, in <module>
>  File "/home/mauricewaka/web2py/gluon/globals.py", line 421, in <lambda>
>  self._caller = lambda f: f()
>  File "/home/mauricewaka/web2py/applications/admin/controllers/default.py" 
> <http://127.0.0.1:8000/admin/default/edit/admin/controllers/default.py>, 
> line 1140, in design
>  data = safe_read(apath('%s/views/%s' % (app, c), r=request))
>  File "/home/mauricewaka/web2py/applications/admin/controllers/default.py" 
> <http://127.0.0.1:8000/admin/default/edit/admin/controllers/default.py>, 
> line 95, in safe_read
>  return safe_file.read()
>  File "/usr/lib/python3.6/codecs.py", line 321, in decode
>  (result, consumed) = self._buffer_decode(data, self.errors, final)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: 
> invalid start byte
>
>
> I downloaded the latest web2py before installing my app.
> Regards
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to