If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

I have a problem with my db tables definition. In db.py file there seems to be a problem with the table with name "NFCobj". I get the "<class 'cPickle.UnpicklingError'> pickle data was truncated" error If I have the db.define_table command, with table name "NFCobj" like this:

#NFCobj table
db.define_table('NFCobj',
    Field('name','string',required=True),
    Field('href','string', required=True),
    Field('active','boolean'),
    format='%(name)s'
)

when I change the name to for example "NFobj", everything is OK:

#NFCobj table
db.define_table('NFobj',
    Field('name','string',required=True),
    Field('href','string', required=True),
    Field('active','boolean'),
    format='%(name)s'
)

 

Below You can see a more datailed error description:

<class 'cPickle.UnpicklingError'> pickle data was truncated

Version

web2py™ Version 2.7.4-stable+timestamp.2013.10.14.15.16.29
Python Python 2.7.5: D:\programming\python\web2py\web2py.exe (prefix: D:\programming\python\web2py)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
Traceback (most recent call last):
  File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 217, in restricted
  File "D:/programming/python/web2py/applications/linkNFC/models/db.py", line 26, in <module>
  File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 7935, in define_table
  File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 7972, in lazy_define_table
  File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 1020, in create_table
UnpicklingError: pickle data was truncated
 

I have already tried to delete all web2py directory, and reinstall a new fresh installation, got the last working version of the application from the bitbucket, still cant solve this issue.

 It seems that there are some temp data or something else left somewhere on the local PC where I'm testing this application. Tommorrow I will try to run the same application from different computer. I predict that I won't be able to repeat this issue on fifferent PC.

Please can somebody help me resolve this issue?

Answers (0)

Comments (0)

Related content


Hosting graciously provided by:
Python Anywhere