This was originally posted on Chris Heiland’s staff blog while he was a member of the Web Team. Chris migrated this post to the Web Team blog before he left because we thought the content still had value to the UW community.
I spent the better part of the week getting Plone 3.3.1 to compile under Ubuntu 9.04. There were some dependency problems and just general wonkiness. The biggest error I received was due to a lack of the Python Imaging Library (PIL). Now that would have been fine except that I installed it via the python-imaging package.
Here is why it didn’t work. The first major thing to know is the library that ships with Ubuntu 9.04 isn’t compatible with python 2.4. This is a problem because the version of plone I am running doesn’t install on anything newer. As a side note I don’t think any version of plone runs on anything newer but that’s for another thread.
To make things easier I used virtualenv to get a directory setup to run my plone instance. If you have never used that package before learn about it – it will save many problems right off the bat. I installed PIL using the following commands:
bin/easy_install —find-links http://www.pythonware.com/products/pil/ Imaging
bin/easy_install -i http://dist.serverzen.com/pypi/simple PILwoTk
If the install for PIL fails due to a version issue add this to your buildout:
# Build egg with Chris McDonough's custom packaging of setuptools-compatibile PIL
recipe = zc.recipe.egg
egg = PIL==1.1.6
find-links = http://dist.repoze.org/PIL-1.1.6.tar.gz