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

13 Comments

  1. Posted May 5, 2009 at 5:47 am | Permalink

    Thanks, this is just what I needed – my apps didn’t run any more, and it took me a while to think that it might be because of the python version!

  2. Posted June 9, 2009 at 1:31 am | Permalink

    thanks for posting this as I am now running Ubuntu 9.04 64bit exclusively, and truly appreciate all the help I can get.

  3. Posted July 3, 2009 at 12:14 pm | Permalink

    THANK YOU… I have trying to make app engine work for hrs and the problem was python 2.6…

  4. Posted July 14, 2009 at 4:55 am | Permalink

    Great advice – I had done this previously on another machine but this is a far superior and simple technique.

  5. Posted July 17, 2009 at 6:16 am | Permalink

    Eclipse 3.4 allows you to choose the compiler, choose 3.5 when running google app engine. You can have both 3.5 and 3.6 peacefully co-exist in eclipse too!

  6. Posted July 20, 2009 at 5:16 pm | Permalink

    Thanks for sharing the tip, Ben. I’m developing on App Engine using Django with the help of Google’s google-app-engine-django project. Applying the change that you mentioned didn’t resolve an issue I was seeing on my local dev environment. I had to additionally change the first line of my project’s manage.py to use python2.5:
    #!/usr/bin/env python2.5
    Cheers,
    Paul.

  7. Sherry Martin
    Posted July 22, 2009 at 6:40 pm | Permalink

    I’m just an amateur writing a few games here and there, but the tips were right on, Ben. Huge help. Thanks!

  8. Posted September 28, 2009 at 10:59 am | Permalink

    Strange… I never had this issue. I installed GAE, developed the app I wanted, and launched it. Never had any issues.

  9. Posted October 9, 2009 at 12:54 am | Permalink

    I installed jaunty , did not face any problems.. thankfully cause I dont understand any of the grub, python or anything like that :D
    I would like to know how did you disable the notifications from pidgin when any one logs out or logs in! Its very distracting… to have that notification. But I wasn’t able to disable it.

  10. Posted November 12, 2009 at 3:37 am | Permalink

    Good post,This was exactly what I needed to read today! I am sure this has relevance to many of us out there.

  11. Posted November 19, 2009 at 4:01 pm | Permalink

    ,[...] http://www.buildcontext.com is another nice source of tips on this subject,[...]

  12. ugg
    Posted November 26, 2009 at 7:29 pm | Permalink

    23 games unbeaten home Champions League Manchester United, yesterday, ugg boots a continuation of the record of this opportunity. Ferguson sent a replacement, but the entire lineup, can not be advantages into goals and eventually lost to ugg bootsBesiktas 0:1, 2005 0:1 since the end of the negative AC Milan has up to 5 years in the Champions League home unbeaten record.11.27C

  13. Posted February 4, 2010 at 4:26 am | Permalink

    very nice

2 Trackbacks

  1. [...] http://www.buildcontext.com/blog/2009/05/03/problem-problems-google-app-engine-on-ubuntu-9-04-jaunt... a few seconds ago from qTwitter [...]

  2. [...] Note, if you are using the command line dev_appserver.py script to run your application, check out this post here [...]

Post a Comment

Your email is never shared. Required fields are marked *

*
*