2.18.5 admin UnicodeDecodeError

64 views
Skip to first unread message

Jacinto Parga

unread,
Apr 25, 2019, 5:00:49 AM4/25/19
to web2py-users
Hi, It suddenly appeared. Version downloaded from source web. The same with github version.

Error ticket for "admin"

Ticket ID

127.0.0.1.2019-04-25.10-45-30.ec4c021c-532a-46c7-a8cd-6f9356fc7ab7

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

Versión

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

Rastreo

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

Error snapshot help

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

inspeccionar atributos

Frames

  • File /home/jacinto/web2py2185/gluon/restricted.py in restricted at line 219 código argumentos variables

    Code listing
    214.
    215.
    216.
    217.
    218.
    219.
    220.
    221.
    222.
    223.
        if environment is None:
    environment = {}
    environment['__file__'] = layer
    environment['__name__'] = '__restricted__'
    try:
    exec(ccode, environment)
    except HTTP:
    raise
    except
    RestrictedError:
    # do not encapsulate (obfuscate) the original RestrictedError
  • File /home/jacinto/web2py2185/applications/admin/controllers/default.py in <module> at line 2021 código argumentos variables

    Code listing
    2010.
    2011.
    2012.
    2013.
    2014.
    2015.
    2016.
    2017.
    2018.
    2019.
            else:
    filename = "web2py.plugin.%s.w2p" % cleanpath(plugin)
    if plugin_install(app, urlopen(source),
    request, filename):
    session.flash = T('New plugin installed: %s', filename)
    else:
    session.flash = \
    T('unable to install plugin "%s"', filename)
    redirect(URL(f="plugins", args=[app, ]))
    return dict(form=form, app=app, plugin=plugin, source=source)
  • File /home/jacinto/web2py2185/gluon/globals.py in <lambda> at line 421 código argumentos variables

    Code listing
    416.
    417.
    418.
    419.
    420.
    421.
    422.
    423.
    424.
    425.
            self.flash = ''            # used by the default view layout
    self.meta = Storage() # used by web2py_ajax.html
    self.menu = [] # used by the default view layout
    self.files = [] # used by web2py_ajax.html
    self._vars = None
    self._caller = lambda f: f()
    self._view_environment = None
    self
    ._custom_commit = None
    self
    ._custom_rollback = None
    self
    .generic_patterns = ['*']
  • File /home/jacinto/web2py2185/applications/admin/controllers/default.py in errors at line 1627 código argumentos variables

    Function argument list

    ()

    Code listing
    1622.
    1623.
    1624.
    1625.
    1626.
    1627.
    1628.
    1629.
    1630.
    1631.
                if not os.path.isfile(fullpath):
    continue
    try
    :
    fullpath_file = safe_open(fullpath, 'rb')
    try:
    error = pickle.load(fullpath_file)
    finally:
    fullpath_file.close()
    except IOError:
    continue
    Variables

Dave S

unread,
Apr 25, 2019, 5:44:36 AM4/25/19
to web2py-users


On Thursday, April 25, 2019 at 2:00:49 AM UTC-7, Jacinto Parga wrote:
Hi, It suddenly appeared. Version downloaded from source web. The same with github version.

Error ticket for "admin"

Ticket ID

127.0.0.1.2019-04-25.10-45-30.ec4c021c-532a-46c7-a8cd-6f9356fc7ab7

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

Versión

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

Are you updating an existing installation, or doing a new installation?

If updating, you may need to clear  old sessions (looks like you're okay on the errors directory, which sometimes gets pickle errors on updates).

/dps

João Matos

unread,
Apr 25, 2019, 5:55:48 PM4/25/19
to web2py-users
Did you change the Python version? Check your path.
Also, if clearing the sessions and errors doesn't work, try to delete all *.pyc in the web2py tree.

Another possible origin are the databases if using SQLite.

Jacinto Parga

unread,
May 22, 2019, 3:56:21 AM5/22/19
to web2py-users
Yes I had to clear the sessions. There is an issue when you start sessions in chrome width different users.

Thanks

Jacinto Parga

unread,
May 22, 2019, 3:57:12 AM5/22/19
to web2py-users
Reply all
Reply to author
Forward
0 new messages