Andy, what is the object that you are trying to store in memcache? this: PicklingError: Can't pickle <type 'function'>: attribute lookup __builtin__.function failed implies to me that you are trying to store an object that contains a function (which is not pickleable).
i can't remember the exact differences, but there are some things that are not pickleable and can't be stored in memcache, but can be stored in (non-GAE) cache.ram etc. christian On Saturday, February 16, 2013 1:58:31 AM UTC-8, Andy W wrote: > > Hi howesc > > The stack trace from the SDK log console is: > > ERROR 2013-02-16 09:50:09,757 restricted.py:161] Traceback (most recent > call last): > > File "/Users/andy/www/web2py/gluon/restricted.py", line 212, in > restricted > > exec ccode in environment > > File > "/Users/andy/www/web2py/applications/nurserymgr/controllers/student.py", > line 297, in <module> > > File "/Users/andy/www/web2py/gluon/globals.py", line 193, in <lambda> > > self._caller = lambda f: f() > > File "/Users/andy/www/web2py/gluon/tools.py", line 2929, in f > > return action(*a, **b) > > File > "/Users/andy/www/web2py/applications/nurserymgr/controllers/student.py", > line 25, in list > > 3600) > > File "/Users/andy/www/web2py/gluon/contrib/gae_memcache.py", line 40, in > __call__ > > self.client.set(key, (time.time(), value)) > > File > "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/__init__.py", > > line 793, in set > > namespace=namespace) > > File > "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/__init__.py", > > line 898, in _set_with_policy > > time, '', namespace) > > File > "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/__init__.py", > > line 977, in _set_multi_async_with_policy > > stored_value, flags = _validate_encode_value(value, self._do_pickle) > > File > "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/__init__.py", > > line 227, in _validate_encode_value > > stored_value = do_pickle(value) > > File > "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/memcache/__init__.py", > > line 416, in _do_pickle > > pickler.dump(value) > > PicklingError: Can't pickle <type 'function'>: attribute lookup > __builtin__.function failed > > > INFO 2013-02-16 09:50:09,757 gaehandler.py:69] **** Request: > 48.30ms/48.66ms (real time/cpu time) > > INFO 2013-02-16 09:50:09,762 recording.py:673] Saved; key: > __appstats__:009700, part: 79 bytes, full: 12263 bytes, overhead: 0.001 + > 0.004; link: http://localhost:8080/_ah/stats/details?time=1361008209709 > > INFO 2013-02-16 09:50:09,771 dev_appserver.py:3104] "GET /student/list > HTTP/1.1" 500 - > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.