The Appengine Journey:Running Google Appengine on Ubuntu 11.10

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!

Step 1: Download and Install Google Appengine for Python.
Step 2: Install
Extract the zipped file either use the context menu to extract files into a folder After you finish extracting, you will get a folder google_appengine which has all the necessary files to develop application. To complete the installation and to able to run Google App Engine, we must specify its path definition. You can specify the PATH definition in the terminal only using:
export PATH=$PATH:/home/your_user_name/Desktop/google_appengine/
But path specified using export command is valid as long as you are inside the current terminal window. That means as soon as you close the window, the path specified becomes invalid. To specify the path in the system, you have to edit
the /home/your_user_name/.profile and specify the path there.
Step 3: First Python App

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:

    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] 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/”, line 126, in <module>
    run_file(__file__, globals())
  File “/home/sucheta/Desktop/google_appengine/”, line 122, in run_file
    execfile(script_path, globals_)
  File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/”, line 694, in <module>
  File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/”, line 582, in main
    root_path, {}, default_partition=default_partition)
  File “/home/sucheta/Desktop/google_appengine/google/appengine/tools/”, line 3142, in LoadAppConfig
    raise 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 /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] Running application dev~helloworld on port 8080: http://localhost:8080

3 thoughts on “The Appengine Journey:Running Google Appengine on Ubuntu 11.10

  1. 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!

  2. 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 Desktop/helloworld

Leave a Reply

Your email address will not be published. Required fields are marked *