I added a temporary fix in trunk. please give it a try.

On Nov 19, 3:32 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Which are you using?
>
> The app is trying to store a db reference object in the session. The
> custom pickling method calls marshal.dumps which is not implemented on
> GAE.
>
> If this is a common problem, then we should implement our own
> marshal.dump on GAE.
>
> def dump(i):
>     i,a=divmod(i,256)
>     i,b=divmod(i,256)
>     d,c=divmod(i,256)
>     return 'i%s%s%s%s' % (chr(a),chr(b),chr(c),chr(d))
> marshal.dump=dump
>
> Pros cons?
>
> On Nov 19, 2:13 pm, Shalab <sachinl...@gmail.com> wrote:
>
> > I was trying to test web2py framework and it support on google app
> > engine and i decided to do what reddish(web2py.appspot.com) has done
> > and test all functionality on google app engine. I have been
> > successful in uploading the app with all the name changes but on
> > registration get below error in google appengine logs.
> > Can you explain how to resolve this error.
>
> > Traceback (most recent call last):
> >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > main.py", line 469, in wsgibase
> >     session._try_store_in_db(request, response)
> >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > globals.py", line 343, in _try_store_in_db
> >     session_data=cPickle.dumps(dict(self)),
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 1359, in
> > dumps
> >     Pickler(file, protocol).dump(obj)
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 218, in dump
> >     self.save(obj)
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 280, in save
> >     f(self, obj) # Call unbound method with explicit self
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 643, in
> > save_dict
> >     self._batch_setitems(obj.iteritems())
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 657, in
> > _batch_setitems
> >     save(v)
> >   File "/base/python_dist/lib/python2.5/pickle.py", line 295, in save
> >     rv = reduce(obj)
> >   File "/base/data/home/apps/gifteddeals/1.337717733870634071/gluon/
> > sql.py", line 1388, in Reference_pickler
> >     return (Reference_unpickler, (marshal.dumps(int(data)),))
> > AttributeError: 'module' object has no attribute 'dumps'
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to