Monday, June 16, 2008

Annoying Grok Problem

When creating a grokproject for the first time or running it's buildout, have you ever encountered this?
Develop: '/home/xkenneth/bb/work/buildoutbuilder/src/buildoutbuilder.grokapp/trunk/.' Develop: '/home/xkenneth/bb/work/buildoutbuilder/src/buildoutbuilder.grokapp/trunk/../../buildoutbuilder.managers/trunk/' 
While:   
Installing.   Getting section app.   Initializing section app.   
Loading zc.buildout recipe entry zc.zope3recipes>=0.5.3:application.  
An internal error occured due to a bug in either zc.buildout or in a recipe being used:  ImportError: 
No module named schemaless

Well there's an easy solution.
Create a new virtual environment with the --no-site-packages option, and rerun the buildout/grokproject script from there.
Don't know what virtual environment is?
http://pypi.python.org/pypi/virtualenv
Don't know what buildout is?
http://pypi.python.org/pypi/zc.buildout
An excellent video introduction to buildout:
http://rhodesmill.org/brandon/buildout/

No comments: