Reading this makes my head hurt, but I wonder if it might not also apply to web2py: http://code.google.com/p/modwsgi/wiki/IssuesWithPickleModule
If so, I can think of some ugly workarounds. On May 24, 2011, at 12:13 PM, Ross Peoples <[email protected]> wrote: > For whatever reason, after running for 24 hours, web2py throws an exception > when trying to log in. I have to stop web2py, and restart it, then the error > goes away and my application starts working again. Any ideas? > > Traceback (most recent call last): > File "/media/psf/Python/web2py/gluon/main.py", line 511, in wsgibase > session._try_store_on_disk(request, response) > File "/media/psf/Python/web2py/gluon/globals.py", line 469, in > _try_store_on_disk > cPickle.dump(dict(self), response.session_file) > PicklingError: Can't pickle <class 'gluon.storage.Storage'>: it's not the > same object as gluon.storage.Storage

