buildcontext

Problem Solving: Get Google App Engine working on Ubuntu 9.04 (Jaunty)

google-app-engine-ubuntu

By default the Google App Engine SDK doesn't run on Ubuntu 9.04 (Jaunty Jackelope)... You can fix it!


After a little searching I noticed neither posts about this issue nor a quick fix were top of the Google rankings... hoping to resolve that with this post and get all of us Ubuntu 9.04 (Jaunty) users up on App Engine. UPDATE: This post is now first when searching for "App Engine Ubuntu Jaunty Problem" and even "App Engine Ubuntu Jaunty" in one day, nice!

Once you download the SDK as usual and run one of your apps on a default Ubuntu 9.04 Jaunty install you will see errors galore, you see Ubuntu 9.04 ships Python 2.6 and App Engine is built on Python 2.5 and they are not friendly!

Here is how I got my environment running, I will update the post if I run into further errors.


In a terminal install Python 2.5

They will coexist on the system.
sudo apt-get install python2.5

Edit dev_appserver.py in your google_appengine directory

Change the first line in dev_appserver.py...
#!/usr/bin/env python
....to...
#!/usr/bin/env python2.5

App Engine should now load and run your apps properly!

I believe this is the simplest noninvasive way to let App Engine find what it wants, Python 2.5, and let Ubuntu carry on as it likes with Python 2.6 and beyond. Here is a source on this issue, commenters have many different solutions.

Hope this post helps at least one of you, -Ben

blog comments powered by Disqus

recent stream

  • @benhedrington
    It's about the users not the platforms. >> "As of today, every major mobile competitor... also makes apps for iOS" http://t.co/nY4VvszK7G
  • @benhedrington
    Wow. "@peterkim: The @BestBuy @twelpforce has closed; kudos to pioneers @garykoelling @benhedrington and @bernierjohn"
  • @benhedrington
    Thanks, @peterkim I learned a lot about people's passion, customer service, and a little about being small in a big corp.
  • @benhedrington
    Love it. Some state all 8 just to create FUD. >> Eight Silly Data Myths Marketing People Believe That Get Them Fired. http://t.co/86Cy6iCgUH
  • @benhedrington
    First Tesla sighting in the deep southern suburbs Minneapolis... Cool!
  • @benhedrington
    Another one goes under the knife... "~$ sudo ./fastboot oem unlock" http://t.co/ZoWSdP4iQG

creator / co-creator of...