I am following the app-engine mobile backend tutorial on the following website: https://cloud.google.com/resources/articles/how-to-build-mobile-app-with-app-engine-backend-tutorial
I am developing on a Windows 8 machine and using Java 7 64-bit
I have installed app-engine-sdk-1.8.6 as an eclipse plugin and set the GAE_SDK_ROOT environment variable to: E:\android-sdk\adt-bundle-windows-x86_64-20130917\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.8.6\appengine-java-sdk-1.8.6
What I found surprising was there were no python files in the above installation directory.I had to manually download appcfg.py.
The tutorial uses an upload_data.sh file to Upload data to datastore.As I am developing on Windows I am using an equivalent batch file upload_data.bat whose contents are as follows:
python appcfg.py upload_data --config_file bulkloader.yaml --url="http://localhost:8888/remote_api" --filename $1 --kind=$2 -e [email protected]
When I run the batch file I get the following error:
E:\AppEngineExample\UploadScript>upload_data.bat places.csv Place
E:\AppEngineExample\UploadScript>python appcfg.py upload_data --config_file bulkloader.yaml
--url="http://localhost:8888/remote_api" --filename $1 --kind=$2 -e [email protected]
Traceback (most recent call last):
File "appcfg.py", line 90, in <module>
DIR_PATH = get_dir_path(os.path.join('lib', 'ipaddr'))
File "appcfg.py", line 70, in get_dir_path
'directory' % gae_sdk_root)
ValueError: GAE_SDK_ROOT 'E:\\android-sdk\\adt-bundle-windows-x86_64-20130917\\eclipse\\plugins\\com.google.appengine.eclipse.sdkbundle_1.8.6\\appengine-java-sdk-1.8.6' does not refer to a valid SDK directory
Please Help!!