2906: Extention generator raises TemplateNotFound
- UnableToReproduce
- Review Board
mra****@nimbu****** (Google Code) (Is this you? Claim this profile.) | |
Sept. 20, 2013 |
What version are you running? git head (94bd9e5178d264248f09f1ee9a62e379889ae4c8) What steps will reproduce the problem? 1. Run "./contrib/tools/generate_extension.py blah" in repo 2. Answer "y" to all questions What is the expected output? What do you see instead? I expect an extension called blah to be created. Instead I see a traceback ending "jinja2.exceptions.TemplateNotFound: setup.py" What operating system are you using? What browser? Ubuntu Precise Please provide any additional information below.
Where are you running this command from? Can you try opening the python shell using ./reviewboard/manage.py shell and executing the following >>> from jinja2 import PackageLoader >>> loader = PackageLoader('reviewboard') >>> loader.provider.module_path Whatever is the output of the last command (module_path location), can you check if there is a contrib/tools/templates/extensions/setup.py at the *parent* of that directory.
I can't seem to reproduce this one. Please reopen if the issue comes up again.
I just had this problem. The documentation says that all you need is a checkout of the source tree: http://www.reviewboard.org/docs/manual/2.0/extending/extensions/overview/#extension-boilerplate-generator However, you must also install the Review Board dependencies, and have executed all the steps up to and including this point: http://www.reviewboard.org/docs/codebase/dev/getting-started/#review-board Only then will the tool work. Otherwise, you'll get the jinja2 error above.