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

Add-on generation fails with jinja2.exceptions.TemplateSyntaxError #1

Open
tuukkao opened this issue Apr 16, 2017 · 1 comment
Open

Comments

@tuukkao
Copy link

tuukkao commented Apr 16, 2017

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.
@derekriemer
Copy link
Member

derekriemer commented Apr 16, 2017 via email

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

No branches or pull requests

2 participants