Eclipse+PyDev+GAE memcache "Undefined variable from import: get"

There is a cleaner solution: Try adding GAE's memcache to your forced builtins.

In your PyDev->Interpreter-Python->ForcedBuiltins window, add the "google.appengine.api.memcache" entry and apply.

Double-click on the memcache errors to check them back, they disappear!

Please make sure that system pythonpath includes google APE install directory.


I'm a bit late to the party, but you can add the following comment in all of your files that use memcache to selectively switch off pydev analysis:

#@PydevCodeAnalysisIgnore


If you don't want to turn off all code analysis for your project/module, then just turn it off for that line. This answer explains that you can hit Ctrl+1 to bring up quick fix and insert #@UndefinedVariable at the end of the line.