Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home Web Server and Workstation Configuration Cardamom Buildout Hack

Cardamom Buildout Hack

Rerunning bin/buildout on cardamom will mess you up. Here's how to fix it.

The Symptom

After making changes to the buildout configuration on the cardamom environment, zope ain't gonna start.  Here's the cursing you'll be subjected to:

[long stack trace]
...
...
...
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/jesses/zope2/cardamom_buildout/parts/instance/etc/site.zcml", line 13.2-13.23
    ZopeXMLConfigurationError: File "/Users/jesses/zope2/cardamom_buildout/parts/third-party-distros-stable/Plone4ArtistsCalendar/configure.zcml", line 9.2-9.41
    ZopeXMLConfigurationError: File "/Users/jesses/zope2/cardamom_buildout/parts/third-party-distros-stable/Plone4ArtistsCalendar/pythonlib/p4a/plonecalendar/configure.zcml", line 65.2
    ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/genericsetup', u'registerProfile')

Ouch.

I'm sure there's a sophisticated fix, but this isn't an instance we're going to do new development against, so we're going to limp along for now.

The Fix

Just delete the main site.zcml file. Yep. Just blow it away:

$ rm parts/instance/etc/site.zcml

Ha! Works great now.

Document Actions

Comments (0)

« February 2012 »
February
MoTuWeThFrSaSu
12345
6789101112
13141516171819
20212223242526
272829