Posts in 'Python' – Page 2

Buildout: Best Thing Ever?

Taking a little bit of a time-out, I just have to ask the question: is Buildout not the best thing ever? (and the people who are so very kind to make the recipes?)

It’s made my work of managing our Plone infrastructure about 1000 times simpler since moving from Instancemanager (ughhh) and having to manually manage everything. I remember being a bit sceptical and very confused the first time I saw a buildout configuration file and thought that I’d never understand the thing.

Far, far from it of course! Whilst a little daunting at first, buildout has (in …

Buildout: Trying to create a Plone/Zope instance

Eeek…what’s this mean?

install() got an unexpected keyword argument 'allow_hosts'

after trying to build zope2zeoserver from my buildout configuration.

After some searching, I found that it was due to my bootstrap.py script (the one the gets buildout in the first place and creates the relevant scripts) was actually pulling down an outdated version of zc.buildout. So, the problem results because this old version of buildout doesn’t have a clue how to handle the given argument.

Solution: update the buildout. For me, that meant correcting the bootstrap script, but for you, it could be a matter …

Buildout: Trying to build Pound

So, trying to build pound through a Buildout recipe was failing part of the way through.

Two problems and their solutions (not necessarily in that order):

  • Needed to install libssl-dev because lcrypto was missing (ambiguity anyone?) - Synaptic says that the package provides “libssl and libcrypto development libraries, header files and manpages” (but never mind a search for `libcrypto`…)
  • Had to correct the relevant user that the recipe was telling pound to build as.

The first point was pretty silly and the second one was just clearly my copy-and-paste mistake.

Buildout and Version Problems

Two blog entries in one day - wow it’s been a good work day.

Just a quick chronicle of my thoughts: version conflicts in buildout aren’t always pretty. My latest escapade into trying to load up Varnish through zc.buildout resulted in a hair-tearing out message:

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py", line 1477, in main
File "/tmp/tmp8o-_PD/zc.buildout-1.1.1-py2.4.egg/zc/buildout/buildout.py …