Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Python 2.7 #2

Open
hannosch opened this issue Apr 3, 2011 · 1 comment
Open

Problem with Python 2.7 #2

hannosch opened this issue Apr 3, 2011 · 1 comment

Comments

@hannosch
Copy link

hannosch commented Apr 3, 2011

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
Copy link
Author

hannosch commented Apr 3, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant