When I started my journey with Google Appengine on Ubuntu 11.10, I started searching for a step by step guide for the installation(Call me lazy, but this was what I did! :-/) . And failed to find out one complete guide which would satisfy all my queries, solve all the problems I was facing.
So, after quite a bit of struggle when I finally succeeded in running my first application, the very first thing that came to my mind was to write a step by step travelogue of the paths journeyed. đ
Thus, this post!
Now to start with a Real Job, let us begin with implementing a tiny application that displays a short message.
Follow the step by step procedures given in this link:
https://developers.google.com/appengine/docs/python/gettingstartedpython27/helloworld
Step 4: Errors and Work Around
Errors that I had faced while working on this were the
rdmsAPI non availability and AppConfigNotFoundError
Precisely this was the statement I was getting:
WARNING 2012-06-29 06:39:38,377 rdbms_mysqldb.py:74] The rdbms API is not available because the MySQLdb library could not be loaded.
Traceback (most recent call last):
File “/home/sucheta/Desktop/google_appengine/dev_appserver.py”, line 126, in <module>
run_file(__file__, globals())
File “/home/sucheta/Desktop/google_appengine/dev_appserver.py”, line 122, in run_file
execfile(script_path, globals_)
File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/dev_appserver_main.py”, line 694, in <module>
sys.exit(main(sys.argv))
File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/dev_appserver_main.py”, line 582, in main
root_path, {}, default_partition=default_partition)
File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/dev_appserver.py”, line 3142, in LoadAppConfig
raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError
-
Work Around for rdmsAPI non availability:
On your terminal just do:
sudo apt-get install python-mysqldb -
Work Around for AppConfingNotFoundError:
Name the app.yaml file in your helloworld folder as helloworld.yaml and Specify the directory of your application in the command line to dev_appserver.py:
dev_appserver.py /home/your_user_name/Desktop/helloworld
Step 5: And it’s Running!
After performing the above demonstrated steps successfully you will get the message :
INFO 2012-06-29 07:40:20,761
dev_appserver_multiprocess.py:647] Running application dev~helloworld on port 8080: http://localhost:8080
This is good! Keep the documentations open! You know, it is the first time that somebody will be searching for our their problems and they'll come to our solutions đ
Also post this on Udacity Forums – might be helpful to some people!
Thank you đ
Yeah. Doing that.
I just hope that I do this on a regular basis. I have to. đ
Hey Sucheta! I found this post useful as I was getting started with App Engine in Ubuntu right now. Especially the command
sudo apt-get install python-mysqldb
I was getting the same errors. Workaround for AppConfingNotFoundError worked differently at my end. I didn't have to rename app.yaml
Just used
dev_appserver.py Desktop/helloworld