This is what I'm getting now:
Traceback (most recent call last):
File "/opt/web2py-1.69.1/gluon/main.py", line 483, in wsgibase
session._try_store_on_disk(request, response)
File "/opt/web2py-1.69.1/gluon/globals.py", line 369, in _try_store_on_disk
cPickle.dump(dict(self), response.session_file)
File
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/copy_reg.py",
line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle function objects
-wes
On Fri, Oct 30, 2009 at 7:09 AM, mdipierro <[email protected]> wrote:
>
> This is because you are storing in a session something that is not
> pickable like a row or set of rows.
>
> On Oct 30, 2:25 am, Fran <[email protected]> wrote:
>> On Oct 29, 11:15 pm, mdipierro <[email protected]> wrote:
>>
>> > Fixed in trunk. I had to study to fix this one.
>> > This is a major problem and calls for a new release asap. If it fixes
>> > it for you I will release.
>>
>> I was also bitten by the "ProgrammingError: Cannot operate on a closed
>> database." issue.
>>
>> With latest trunk I get this error message instead (XP/Python 2.5.4):
>>
>> Traceback (most recent call last):
>> File "C:\Bin\web2py\gluon\main.py", line 483, in wsgibase
>> session._try_store_on_disk(request, response)
>> File "C:\Bin\web2py\gluon\globals.py", line 369, in
>> _try_store_on_disk
>> cPickle.dump(dict(self), response.session_file)
>> File "c:\bin\python25\lib\copy_reg.py", line 69, in _reduce_ex
>> raise TypeError, "can't pickle %s objects" % base.__name__
>> TypeError: can't pickle function objects
>>
>> F
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---