I can run a simple "Hello World" Google App Engine application on localhost with no problems. However, when I add the line "import gdata.auth" to my Python script I get "ImportError: No module named gdata.auth".
I have installed the gdata module and added the following line to my .bashrc:
export PYTHONPATH=$PYTHONPATH:/Library/Python/2.5/site-packages/
Is there anything else I need to do? Thanks.
EDIT: The strange thing is that if I run python from a shell and type "import gdata.auth" I do not get an error.
try adding this to your script:
Your .bashrc is not known to Google App Engine. Make sure the
gdata
directory (with all its proper contents) is under your application's main directory!See this article, particularly (and I quote):
The gdata client library installation script installs the modules in the wrong directory for ubuntu python installation.