Making a Plone 2.5.5 buildout as of now on Ubuntu 10.4

published Jun 25, 2013 10:55   by admin ( last modified Feb 20, 2015 02:18 )

Also check the newer post: Making a python 2.4 virtualenv buildout on Ubuntu 10.4 & Debian 7 as of 2014-03

I had to make a Plone 2.5.5 buildout today, in order to get the last Plone 2.5 web site of any of my customers up to the Plone 3/4 world. There was some trouble that did not happen half a year ago or so. Here's how to get around it.

Python 2.4

Is still in the repositories for Ubuntu 10.4 LTS. So no problem there. At least.

Virtualenv with site packages

If I used --no-site-packages then the subsequent steps to a functioning buildout would not work, specifically bootstrap.py would go into an infinite "installing distribute loop", so virtualenv must install a local python with access to the 2.4 site packages. Furthermore, with the --setuptools flag, --no-site-packages will make virtualenv (1.4.5) crash on my machine.

Setuptools must also be use instead of distribute. On the slightly older virtualenv I used (1.4.5), with site packages is the default, on newer ones no site packages is the default. So on my older version it's:

virtualenv --setuptools -p python2.4 .

On a newer virtualenv it would probably be:

virtualenv --setuptools --system-site-packages -p python2.4 .

Bootstrap.py with an older zc.buildout specified

With the bootstrap.py script, you can specify a version string

./bin/python bootstrap.py --version 1.4.4

This will give you zc.buildout 1.4.4, which is the recommended old version for those who have problems wth the new version.

Pin Pillow to an older version than current version

If you are using Pillow, the PIL replacement, it cannot be newer than 1.7.8, which is the recommended old version for python 2.4.

Pillow ==1.7.8

...if you pin it in the eggs section,

Pillow =1.7.8

...if you instead pin it in the versions section.

Remove zope libraries in system python2.4

see:

The Donkey's Stone: AttributeError: 'module' object has no attribute 'Surrogate'