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

...the personal blog of
Ben Hedrington

I will use this space to write about things that interest me in the web industry in order sharpen my point of view and build my context... - Ben Hedrington

Creator

Stream

Good read. >> "Facebook's 'Letter from Zuckerberg': The Annotated Version" http://t.co/QjEruaVE
Nice quote. "Successful innovation... requires an odd blend of certainty and openness to new information." http://t.co/skZX0pXX
Good to see the follow up study. >> "How Americans used their phones to assist with purchasing decisions this holiday" http://t.co/dLMCbIXZ
Mobile will take over... "first signs ... startups we funded not caring much what their domain name was" - Paul Graham http://t.co/2pZklWTC
"The easy thing to do is nothing...continuing on the current path is a time-tested formula for complacency" Jason Fried http://t.co/E8E2695W
The old "No one gets fired for buying IBM" becoming "We're going to iterate" ad infinitum? >> "Starting Over - Fried" http://t.co/E8E2695W

Subscribe, RSS Feed

Recent Bookmarks