google app engine 1.7.6 memcache viewer (Python) -


i've been having trouble memcache viewer after updating python dev appserver google app engine 1.7.6 (with python 2.7).

it appears memcache isn't updated or isn't readable. have tried view memcache app engine memcache viewer when input memcache key error.

when flush cache proceeds normal until memcache needs read again...

the hit ratio , memcache size increases normal, there in cache. when revert app engine 1.7.5 works fine. perhaps else has had issue?

when input memcache key following:

traceback (most recent call last):   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 1536, in __call__     rv = self.handle_exception(request, response, e)   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 1530, in __call__     rv = self.router.dispatch(request, response)   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 1278, in default_dispatcher     return route.handler_adapter(request, response)   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 1102, in __call__     return handler.dispatch()   file "c:\program files (x86)\google\google_appengine\google\appengine\tools\devappserver2\admin\admin_request_handler.py", line 80, in dispatch     super(adminrequesthandler, self).dispatch()   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 572, in dispatch     return self.handle_exception(e, self.app.debug)   file "c:\program files (x86)\google\google_appengine\lib\webapp2-2.5.1\webapp2.py", line 570, in dispatch     return method(*args, **kwargs)   file "c:\program files (x86)\google\google_appengine\google\appengine\tools\devappserver2\admin\memcache_viewer.py", line 145, in     values['value'], values['type'] = self._get_memcache_value_and_type(key)   file "c:\program files (x86)\google\google_appengine\google\appengine\tools\devappserver2\admin\memcache_viewer.py", line 74, in _get_memcache_value_and_type     except (pickle.unpicklingerror, attributeerror, eoferror, importerror, nameerror: global name 'pickle' not defined 

i tried including "import pickle" in main.py in vain.

i've included samples of code isn't necessary hope more app engine update code...

some of main.py file:

#import pickle google.appengine.api import memcache google.appengine.ext import db 

and sample function how handle memcache:

def mc_get(key):     = memcache.get(key)     if a:         val =     else:         val = none     return val  def mc_set(key, val):     memcache.set(key, val) 

and if want query users in db use:

def get_users(update=false):     mc_key = 'users'     entries = mc_get(mc_key)     if update or entries none:         = user.all()         logging.error('db---q - users')         entries = list(a)         memcache.set(mc_key, entries)     return entries 

update: added "import pickle" memcache_viewer.py file in google\google_appengine\google\appengine\tools\devappserver2\admin\memcache_viewer.py (is bug??)

and when type in memcache key following error under memcache key input field: error fetching users: failed retrieve value cache: no module named main

any appreciated, in advance.

i changed old datastore api ndb(a bit of chore changing code). automatic caching seems have solved problem, may suggest problem code, still doesn't explain why worked fine when using app engine 1.7.5 , not 1.7.6.

i'll remove answer if has alternative, thought i'd post progress in case else having same problem.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -