It's DALRef.__unpickler__ I think. Fails at line 68 of copy_reg.py : if base is self.__class__: raise TypeError, "can't pickle %s objects" % base.__name__
with these values: "base"= type: <type 'function'> "self"= function: <function __unpickler__ at 0x037A6470> "self.__class__"= type: <type 'function'> On Oct 30, 12:05 pm, Wes James <compte...@gmail.com> wrote: > I'm not sure this affecting what is going on. It is simply logging in > to t3 wiki and the error comes up, there is no record in the session - > plain t3 wiki usage - logging in. As I mentioned, this works fine in > 1.68.1, go to 1.69.1 and the error shows up. Fran is having the same > issue.... > > -wes > > On Fri, Oct 30, 2009 at 8:42 AM, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > You are storing in session something that cannot go in a session. For > > example a record. You can only store in a session a record id, not a > > record. This is because the record will have changed when the session > > is retrieved. > > > On Oct 30, 8:59 am, Wes James <compte...@gmail.com> wrote: > >> 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 <mdipie...@cs.depaul.edu> 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 <francisb...@googlemail.com> wrote: > >> >> On Oct 29, 11:15 pm, mdipierro <mdipie...@cs.depaul.edu> 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 web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---