如何解决<type'exceptions.keyerror'=“”>'\ x00'错误

时间:2018-11-23 08:16:35

标签: web2py

今天我所在的地区断电,这是在我处理应用程序时发生的。当电源恢复供电并且我尝试继续我的应用程序时,出现此错误:
“'<'输入'exceptions.KeyError'>'\ x00'”
现在我的应用程序无法正常工作!下面是错误的堆栈跟踪

Traceback

Traceback (most recent call last):
File "C:\Users\Shurah Maswabi\Documents\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "C:/Users/Shurah Maswabi/Documents/web2py/applications/Power_Vault/models/dbcurrentV.py", line 16, in <module>
Field('posted_by', 'reference auth_user', default=auth.user_id, readable=False, writable=False))
File "C:\Users\Shurah Maswabi\Documents\web2py\gluon\packages\dal\pydal\base.py", line 590, in define_table
table = self.lazy_define_table(tablename, *fields, **kwargs)
File "C:\Users\Shurah Maswabi\Documents\web2py\gluon\packages\dal\pydal\base.py", line 624, in lazy_define_table
polymodel=polymodel)
File "C:\Users\Shurah Maswabi\Documents\web2py\gluon\packages\dal\pydal\adapters\base.py", line 798, in create_table
return self.migrator.create_table(*args, **kwargs)
File "C:\Users\Shurah Maswabi\Documents\web2py\gluon\packages\dal\pydal\migrator.py", line 296, in create_table
sql_fields_old = pickle.load(tfile)
File "pickle.py", line 1378, in load
File "pickle.py", line 858, in load
KeyError: '\x00'

如果外面有人知道这是什么,我真的可以使用您的帮助来解决它。谢谢!

0 个答案:

没有答案