-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add-on generation fails with jinja2.exceptions.TemplateSyntaxError #1
Comments
Aaah, it looks like either I missed something in the cookiecutter.json. I
might remove that code soon, because now we can do scons integgration by
making the user install scons, and I don't need to package scons-local.
This is better for many reasons including amount of packaged fluf.
…On Sun, Apr 16, 2017 at 10:36 AM, Tuukka Ojala ***@***.***> wrote:
Steps to reproduce:
1. Install from PIP: pip install NVDA-addonTemplate
2. Run NVDAAddonTemplate and press enter on each prompt thus creating
an add-on with the default values.
Current result:
After answering to "Use continuous integration with Travis CI? Please see
the readme to learn more." the following error is being printed:
Traceback (most recent call last):
File "C:\python27\scripts\NVDAAddonTemplate-script.py", line 9, in <module>
load_entry_point('NVDA-addonTemplate==0.5.2', 'console_scripts', 'NVDAAddonTemplate')()
File "c:\python27\lib\site-packages\NVDAAddonTemplate\__init__.py", line 90, in run
cookiecutter(curFileDir, no_input=True, extra_context=context)
File "c:\python27\lib\site-packages\cookiecutter\main.py", line 102, in cookiecutter
context=context
File "c:\python27\lib\site-packages\cookiecutter\generate.py", line 204, in generate_files
generate_file(project_dir, infile, context, env)
File "c:\python27\lib\site-packages\cookiecutter\generate.py", line 114, in generate_file
tmpl = env.get_template(infile_fwd_slashes)
File "c:\python27\lib\site-packages\jinja2\environment.py", line 812, in get_template
return self._load_template(name, self.make_globals(globals))
File "c:\python27\lib\site-packages\jinja2\environment.py", line 786, in _load_template
template = self.loader.load(self, name, globals)
File "c:\python27\lib\site-packages\jinja2\loaders.py", line 125, in load
code = environment.compile(source, name, filename)
File "c:\python27\lib\site-packages\jinja2\environment.py", line 565, in compile
self.handle_exception(exc_info, source_hint=source_hint)
File "c:\python27\lib\site-packages\jinja2\environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File ".\scons-local-2.5.0\SCons\Variables\__init__.py", line 208, in template
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 's'.
File ".\scons-local-2.5.0\SCons\Variables\__init__.py", line 208
value = env.subst('${%s}'%option.key)```
Expected result:
The wizzard (sic) should generate an add-on template based on the values entered to the prompts.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFGivdUNpzAQgnPX9OKPdyYe7FFVhHLSks5rwkOBgaJpZM4M-qzS>
.
--
Derek Riemer: Improving the world one byte at a time!
- University of Colorado Boulder Department of computer science, 4th
year undergraduate student.
- Accessibility enthusiast.
- Proud user of the NVDA screen reader.
- Open source enthusiast.
- Skier.
Personal website <http://derekriemer.com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
pip install NVDA-addonTemplate
NVDAAddonTemplate
and press enter on each prompt thus creating an add-on with the default values.Current result:
After answering to "Use continuous integration with Travis CI? Please see the readme to learn more." the following error is being printed:
The text was updated successfully, but these errors were encountered: