Jarn / jarn.jenkins

Jenkins / Hudson buildout recipe
4 stars 3 forks source link

Problem with Python 2.7 #2

Open hannosch opened 13 years ago

hannosch commented 13 years ago

Originally reported via email from Rob Madole:

Using Python 2.7, we are getting a traceback when this recipe goes to create the Jetty config.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 1784, in main
   getattr(buildout, command)(args)
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 569, in install
   installed_files = self[part]._call(recipe.install)
 File "/opt/ci/deployer/eggs/zc.buildout-1.5.1-py2.7.egg/zc/buildout/buildout.py", line 1276, in _call
   return f()
 File "/opt/ci/deployer/eggs/collective.recipe.hudson-1.0a2-py2.7.egg/collective/recipe/hudson/__init__.py", line 91, in install
   destination=os.path.join(self.part_dir, 'etc'))
 File "/opt/ci/deployer/eggs/collective.recipe.hudson-1.0a2-py2.7.egg/collective/recipe/hudson/__init__.py", line 44, in generate_jetty
   kwargs).install()
 File "/opt/ci/deployer/eggs/iw.recipe.template-0.2-py2.7.egg/iw/recipe/template/__init__.py", line 64, in install
   contents = '%s' % template
 File "/opt/ci/deployer/eggs/Cheetah-2.4.2.1-py2.7-linux-x86_64.egg/Cheetah/Template.py", line 1005, in __str__
   rc = getattr(self, mainMethName)()
TypeError: unbound method respond() must be called with DynamicallyCompiledCheetahTemplate instance as first argument (got nothing instead)

Are you still maintaining this project? I know nothing about Cheetah, but the fix it contents = '%s' % template.respond().

hannosch commented 13 years ago

I looked at this, but unfortunately the problem is in the iw.recipe.template code and I cannot easily work around that. The last changes to that recipe happened two years ago and to my knowledge Ingeniweb isn't maintaining the software anymore. I'll put it on my list to rewrite the template creation logic using a different method, probably using the more maintained collective.recipe.template.