Web2py Unpickling错误

Web2py UnpicklingError

我在 Ubuntu 中收到此 web2py 错误:

Traceback (most recent call last):
  File "/home/mwk/web2py/gluon/restricted.py", line 227, in restricted
    exec ccode in environment
  File "/home/mwk/web2py/applications/britamintell/models/db2.py", line 15, in <module>
    auth.signature)
  File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 834, in define_table
    table = self.lazy_define_table(tablename,*fields,**args)
  File "/home/mwk/web2py/gluon/packages/dal/pydal/base.py", line 873, in lazy_define_table
    polymodel=polymodel)
  File "/home/mwk/web2py/gluon/packages/dal/pydal/adapters/base.py", line 500, in create_table
    sql_fields_old = pickle.load(tfile)
UnpicklingError: invalid load key, '�'.

这是什么,我该如何解决?

关于您尝试做什么的信息不多。但是,我想您正在尝试迁移数据库。 如果您使用 MYSQL 作为 BBDD 后端,您可以尝试将字符串字段的长度更改为 "length=255"。

table/field 名称中似乎还使用了一个奇怪的字符