I am trying to use Tarek Ziadé's Trac buildout recipe from PyPi (and his book 'Expert Python Programming', which I don't have access to.)
It worked fine the first time round, however upon creating a new (Python 2.6 virtualenv) environment I got the following error on buildout.
File "/usr/local/Plone/buildout-cache/eggs/pbp.recipe.trac-0.2.3-py2.6.egg/pbp/recipe/trac/__init__.py", line 59, in install
milestone_list = [m.name for m in Milestone.select(trac.env_open())]
AttributeError: TracAdmin instance has no attribute 'env_open'
Sure enough, if i insert a pdb.set_trace() before line 59 and introspect trac
then I can see there is no env_open
attribute (although there is env_set
, env_check
etc).
The one time it did work was in a very messy development environment that already had one (non buildout) Trac instance set up and had been built with sudo permissions (the newer environment has normal permissions).
I'm at a loss as to why this is happening, although, based on the above, it feels like the recipe is trying to open a trac instance that doesnt exist yet or it can't access?