I am having this issue right now and it's when trying to set my app up in a new dev environment. I'm not using apache or wsdi. Just web2py. I am trying to open the app for the first time to create the database framework and this error is showing up after it creates my database structure. And then if I try to refresh it's just infinitely loading. I am not using session at this point and all of this is running fine in production currently.
<type 'exceptions.TypeError'> can't pickle instancemethod objectsVersion web2py™Version 2.9.11-stable+timestamp.2014.09.15.23.35.11PythonPython 2.7.6: /usr/bin/python2.7 (prefix: /usr)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last): File "/var/web2py/gluon/restricted.py", line 224, in restricted exec ccode in environment File "/var/web2py/applications/auth/models/config.py" <https://dev-originrawbox.rws.ad.ea.com:8081/admin/default/edit/auth/models/config.py>, line 41, in <module> migrate='auth_app_group.table') File "/var/web2py/gluon/dal.py", line 8414, in define_table table = self.lazy_define_table(tablename, *fields, **args) File "/var/web2py/gluon/dal.py", line 8450, in lazy_define_table polymodel=polymodel) File "/var/web2py/gluon/dal.py", line 1116, in create_table pickle.dump(sql_fields, tfile) File "/usr/lib/python2.7/copy_reg.py", line 70, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle instancemethod objects On Tuesday, July 16, 2013 at 7:44:46 PM UTC-7, Joe Magaro wrote: > > Hi, Lately when I'm in the admin section, when I perform an action such as > installing a new app, or deleting a view I keep getting the error below. Im > not sure what changed to affect this, please help! > > raceback (most recent call last): > File "/home/www-data/web2py/gluon/main.py", line 606, in wsgibase > session._try_store_in_cookie_or_file(request, response) > File "/home/www-data/web2py/gluon/globals.py", line 757, in > _try_store_in_cookie_or_file > self._try_store_in_file(request, response) > File "/home/www-data/web2py/gluon/globals.py", line 763, in > _try_store_in_file > if not response.session_id or self._forget or self._unchanged(): > File "/home/www-data/web2py/gluon/globals.py", line 719, in _unchanged > session_pickled = cPickle.dumps(dict(self)) > File "/usr/lib/python2.7/copy_reg.py", line 70, in _reduce_ex > raise TypeError, "can't pickle %s objects" % base.__name__ > TypeError: can't pickle function objects > > Error snapshot [image: help] > <https://www.mywebsonic.com/admin/default/ticket/admin/65.94.90.186.2013-07-17.06-41-06.14386b00-ff0d-47ad-bf32-de51a08fda61#> > > <type 'exceptions.TypeError'>(can't pickle function objects) > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.