Please help... I am running some python code from cygwin and I can't import the GoogleAppEngine (GAE) External Data API. I think this may be an environment variable problem. I am able to run GAE and the 'remote_data_api_shell.py' from the command line, but I cannot run a python module that references GAE.
I'm in trial-and-error mode trying every combination of environment variable strings I can think of. Nothing works and my frustration is mounting.
GAE(1.5) is located in (windows path): C:\Program Files (x86)\Google\google_appengine
Here is my Python Error:
Traceback (most recent call last): File "/cygdrive/c/data/my-program/MyProgram.py", line 48, in '<'module'>'
from Model import MyStoredObject File "/cygdrive/c/data/my-program/Model.py", line 6, in '<'module'>' from google.appengine.ext import db ImportError: No module named google.appengine.ext
I setup my environment variables in my cygwin bashrc file. My bashrc file contains
GAE_HOME="/cygdrive/c/Program\ Files\ (x86)/Google/google_appengine"
I tried many combinations of strings and characters here.
PATH="$PATH:$GAE_HOME
PYTHONPATH="$PYTHONPATH:$GAE_HOME:$GAE_HOME/lib/yaml/lib:
Also tried
$GAE_HOME/google/appengine/ext
and many more...export PYTHONPATH
export PATH
export GAE_HOME
How can I make this work? Anything obvious to a GAE expert that I'm doing wrong here?