Sergey Pronin
Sergey Pronin

Reputation: 193

Serials of errors on memcache.get -> gae_override.httplib

I'm running Python on GAE with 5-10 requests/second for now. For the last two day I can't stop getting the following error:

...    
result = memcache.get(url)
      File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 559, in get
        results = rpc.get_result()
      File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 612, in get_result
        return self.__get_result_hook(self)
      File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 624, in __get_hook
        self._do_unpickle)
      File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 271, in _decode_value
        return do_unpickle(value)
      File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/memcache/__init__.py", line 401, in _do_unpickle
        return unpickler.load()
    ImportError: No module named gae_override.httplib

The point is that I have some "serials" during the day. Most of the time it looks good, but then I can receive 50-100 errors one by one.

I haven't touched that code for a couple of weeks, so the problem have existed for the last two days. The Internet doesn't have so much info on that (nothing at all, actually).

Does anybody have any suggestions?

Thanks!

Upvotes: 1

Views: 92

Answers (1)

Tim Hoffman
Tim Hoffman

Reputation: 12986

You will note in the stack trace it is saying it can't import a module gae_override. a module called gae_override is not part of the appengine runtime.

That code is trying to re-consitute an entity stored in memcache and to do that will need to import some of your code for model/entity definition, and it can't find the gae_override module.

My guess is you are doing some path manipulation in your code somewhere for custom libraries however it's not done in a consistent place. In this case the paths aren't correct and the import fails. Do you use appengine_config.py to setup your paths for import ? What sort of request is getting the error - for instance is it a newly started and this is the first request it processess ?

Upvotes: 1

Related Questions