Tuesday, October 26, 2010

Installing Python 2.5 for Google App Engine on Ubuntu

This was useful only for OLD App Engine 
Current GAE has moved to Python 2.7

Installing Python2.5 for Google App Engine on Ubuntu took me some time on my new 64-bit Ubuntu 10.04. So for others this is a small How-To ..

Ubuntu 10.04 official repository doesn't has package for Python2.5 and GAE needs it.

I thought of building it from src but ran into weird errors and was lazy enough to look for using some-one else's work.

Some Googel'ing pointed me to a gentleman's efforts who has compiled it for others. (This worked on my earlier 32-bit Lucid installation but not on 64-bit)


My Quick FIX

1) Add following line on top of your repository list (/etc/apt/sources.list)
deb http://ftp.debian.org/debian/ lenny main contrib non-free


2) $ sudo apt-get update

3) $
sudo apt-get install python2.5

4) $ python2.5
 

... Bingo


To use only ubuntu packages in future undo changes done in sources.list ..


Update:
On Ubuntu 10.10 just compiled it from the source code....