There was a electrical power cut in my area today, it happened while i
was working on my application. When the power returned & I tried to
continue with my application I got this error:
"'<'type 'exceptions.KeyError'> '\x00'"
Now my application is NOT working! This is not the first time, i have had to start another project from scratch but i cant with this current one because alot has been done on it, i need to know what this error is!
Below is the stack trace to the error:
Traceback
Traceback (most recent call last):
File "C:\Users\.........\Documents\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
File "C:/Users/........../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\.......\Documents\web2py\gluon\packages\dal\pydal\base.py", line 590, in define_table
table = self.lazy_define_table(tablename, *fields, **kwargs)
File "C:\Users\.......\Documents\web2py\gluon\packages\dal\pydal\base.py", line 624, in lazy_define_table
polymodel=polymodel)
File "C:\Users\......\Documents\web2py\gluon\packages\dal\pydal\adapters\base.py", line 798, in create_table
return self.migrator.create_table(*args, **kwargs)
File "C:\Users\......\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'
If anyone out there knows what this is I could really use your help in resolving it, i am desperate . Thank you!
Chapter 6 Fixing broken migrations
--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jonsubs yes it could if for some reason web2py wasn't graciously stopped which can happen depending on the OS and if web2py is taking too long to shutdown. Again don't leave migrations enabled otherwise the pickle files will be being written which if stopped halfway can lead to corrupted pickle files.
--