edit the top of dev_appengine.py and replace
#!/usr/bin/env python
with
#!/usr/bin/env python2.6
Python 2.6 is not ideal but it seems to do the job. If you want to go the extra mile (as I did) and install Python 2.5.5, you need to manually add ssl and address some bad assumptions python makes about sqlite3's library locations...
- apt-get install libssl-dev libsqlite3-dev.
- Edit Modules/Setup.dist and uncomment the _ssl and zlib lines.
- Edit setup.py and modify it to look like this:
sqlite_dirs_to_check = [ os.path.join(sqlite_incdir, '..', 'lib64'), os.path.join(sqlite_incdir, '..', 'lib'), os.path.join(sqlite_incdir, '..', 'lib', 'x86_64-linux-gnu'), os.path.join(sqlite_incdir, '..', '..', 'lib64'), os.path.join(sqlite_incdir, '..', '..', 'lib'), os.path.join(sqlite_incdir, '..', '..', 'lib', 'x86_64-linux-gnu'), ]
- make clean && ./configure --prefix=/usr/local/python2.5 && make
- sudo make install
- ln -s /usr/local/python2.5/bin/python2.5 /usr/bin
- Change dev_appengine.py to refer to python2.5
Good luck!
Thank you for the good entry!
ReplyDelete6.ln -s /usr/local/bin/python2.5 /usr/bin
is
6.ln -s /usr/local/python2.5/bin/python2.5 /usr/bin
isn't it?
Argh. Thanks, you're absolutely right. Fixed.
ReplyDelete