Traceback (most recent call last):
File "/home4/mamplcom/public_html/cgi-bin/gluon/restricted.py", line 220, in restricted
exec ccode in environment
File "/home4/mamplcom/public_html/cgi-bin/applications/im/models/db.py", line 74, in <module>
auth.define_tables(username=False, signature=False)
File "/home4/mamplcom/public_html/cgi-bin/gluon/tools.py", line 1784, in define_tables
format='%(first_name)s %(last_name)s (%(id)s)'))
File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 8226, in define_table
table = self.lazy_define_table(tablename,*fields,**args)
File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 8263, in lazy_define_table
polymodel=polymodel)
File "/home4/mamplcom/public_html/cgi-bin/gluon/dal.py", line 1125, in create_table
sql_fields_old = pickle.load(tfile)
File "/home4/mamplcom/public_html/cgi-bin/gluon/custom_import.py", line 92, in custom_importer
return base_importer(pname, globals, locals, fromlist, level)
ImportError: No module named copy_reg
I can import copy_reg from the python prompt and adding the import copy reg from Dal.py (suggested in a thread by Massimo) has no effect.
I use Python 2.7.8.
Any clu would be helpfull.
Richard
I am now hosting the app at Pythonanyware, I expect the libraries they use are up to date. assuming they are, also at pythonanyware running python2.7 the same error occurs.
Could it be a bug in Web2py? Please assist me in diagnosing and testing so nobody else will run in this issue.
Richard
My guess would be this is happening because of you copying files with pickles around. Some stuff is not portable, for instance, web2py uses marshal in some places.Pickle is infamous for giving very weird error messages like the one you are getting that appear to point to other problems.
If I am right, a solution can be to delete everything with pickles on it. Like the table files in the database folder, the sessions and everything in the cache.--
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/8toVDprfqwM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.