Hi,
I am using web2py hosted in Apache2 with WSGI, Python 2.7.3 on a Linux
Machine.
When I go to the admin interface over SSL from a remote machine, I get this
error:
<type 'exceptions.TypeError'>(can't pickle lock objects)
Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Traceback (most recent call last):
File "/var/www/web2py/gluon/main.py", line 479, in wsgibase
session._try_store_in_cookie_or_file(request, response)
File "/var/www/web2py/gluon/globals.py", line 1088, in
_try_store_in_cookie_or_file
return self._try_store_in_file(request, response)
File "/var/www/web2py/gluon/globals.py", line 1095, in _try_store_in_file
or self._unchanged(response)):
File "/var/www/web2py/gluon/globals.py", line 1040, in _unchanged
session_pickled = cPickle.dumps(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 lock objects
The problem is fixed if I remove all files from the session/ folder of the
admin application.
I get the same error also when trying to upload a static file from the
admin interface. The upload is done, but this error is raised instead of
returning to the previous page. In this case, I found no way of fixing the
error, but I can live with it.
Any idea what can be wrong? Is there any test I can perform to obtain
further information?
Thanks very much.
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.