Unpickling error

60 views
Skip to first unread message

Maurice Waka

unread,
Mar 6, 2017, 11:08:04 AM3/6/17
to web2py-users

Am getting this web2py error in Ubuntu:

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, '�'.

what is this and how do i resolve it?

Jordan Myers

unread,
Mar 6, 2017, 3:20:36 PM3/6/17
to web2py-users
It would help if you gave us some more context. Where does this error occur? What are you trying to do? The error seems to be when you are creating tables in the file db2.py, what are the contents of this file?

Maurice Waka

unread,
Mar 9, 2017, 7:59:03 AM3/9/17
to web...@googlegroups.com
Sorry. I discovered that my database was corrupted 

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/FyHFlywmRdg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave S

unread,
Mar 9, 2017, 8:09:02 PM3/9/17
to web2py-users


On Thursday, March 9, 2017 at 4:59:03 AM UTC-8, Maurice Waka wrote:
Sorry. I discovered that my database was corrupted 



That's too bad, but if the data is backed up it's at least a relatively straightforward recovery.  Good luck!

/dps
 
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

Maurice Waka

unread,
Mar 12, 2017, 7:11:20 AM3/12/17
to web...@googlegroups.com
Yes I had backed up my data. It worked after I resumed with the 'old' data.
Regards

To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages