LaunchpadOnKarmic

Not logged in - Log In / Register

Revision 52 as of 2009-09-23 18:08:59

Clear message

This page is a place to collect notes written for and by people living on the bleeding edge and developing Launchpad on Karmic.

It has also become slightly co-opted as a place to manage the migration towards compatibility with the newer Python versions which Karmic prefers by default.

PPA Dependencies

The Launchpad PPA now contains a complete set of packages for the Karmic series.

Launchpad on Karmic with Python 2.4

It works pretty much, but there's an unresolved issue wherein setuptools' way of supporting Python namespace packages tends to leave you using the lazr.* packages installed into the system site-packages directory, despite the Launchpad buildout's best efforts.

This manifests as the following test failures:

Workaround: Remove the symlinks at /usr/lib/python2.{4,5}/site-packages/lazr.*-nspkg.pth and trust to the fact that Karmic's default Python is 2.6 to hopefully not break anything on your system that wanted to use them.

Moving to newer Python versions: Python 2.5

The ultimate goal is to migrate Launchpad to Python 2.6. Rather than go straight to Python 2.6, I (maxb) am focusing on Python 2.5 first as a stepping stone.

https://bugs.launchpad.net/launchpad-foundations/+bugs?field.tag=python-upgrade

Launchpad code itself

https://code.launchpad.net/~maxb/launchpad/python2.5 tracks lp:launchpad/stable (or occasionally devel), on a manual basis, and acts as a one-stop-shop for something that people can check out and build using Python 2.5

Remaining changes in python2.5 branch:

Launchpad source dependencies (sourcecode bzr trees)

The Makefiles of pygettextpo & pygpgme make direct reference to Python 2.4, you'll need to amend them appropriately.

Test Status for lp:~maxb/launchpad/python2.5@9026 based on lp:launchpad/stable@9539

Problems

barry has found that make schema is flakey. Occasionally I'm getting these errors:

make -C database/schema
make[1]: Entering directory `/home/barry/projects/launchpad/devel/database/schema'
$user,public,ts2
* Using launchpad-2109-00-0.sql as baseline
* If this fails you need to run as the postgresql superuser
* eg. sudo -u postgres make create

* Creating database "launchpad_empty".
Giving up waiting for connections to template1 to drop.
1 connections by postgres to template1
make[1]: *** [create] Error 10
make[1]: Leaving directory `/home/barry/projects/launchpad/devel/database/schema'
make: *** [schema] Error 2

Note that the sudo command has to be run from database/schema but does not seem to help. Note too that sometimes /etc/init.d/postgresql-8.3 restart fixes the problem, but not always.