Skip to content

jinja2.exceptions.TemplateNotFound: snippets/builder_vsphere_windows.json #71

@mlinton

Description

@mlinton

Attempting to install and use malboxes on OSX using vSphere backend.

I have modified the ~/Library/Application Support/malboxes/config.js with the vsphere info, and when I try to run malboxes build win10_64_analyst, it throws the following:

CoreBook:malboxes marklinton$ malboxes build win10_64_analyst
Generating configuration files...
Traceback (most recent call last):
  File "/usr/local/bin/malboxes", line 11, in <module>
    load_entry_point('malboxes==0.4.0.dev0', 'console_scripts', 'malboxes')()
  File "/usr/local/lib/python3.6/site-packages/malboxes/__init__.py", line 21, in main
    main()
  File "/usr/local/lib/python3.6/site-packages/malboxes/malboxes.py", line 570, in main
    args.func(parser, args)
  File "/usr/local/lib/python3.6/site-packages/malboxes/malboxes.py", line 390, in build
    config, packer_tmpl = prepare_config(args.template)
  File "/usr/local/lib/python3.6/site-packages/malboxes/malboxes.py", line 201, in prepare_config
    packer_tmpl = prepare_packer_template(config, template)
  File "/usr/local/lib/python3.6/site-packages/malboxes/malboxes.py", line 151, in prepare_packer_template
    f.write(template.render(config)) # pylint: disable=no-member
  File "/usr/local/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
    return original_render(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.6/site-packages/malboxes/templates/win10_64_analyst.json", line 9, in top-level template code
    {% include 'snippets/builder_vsphere_windows.json' %},
  File "/usr/local/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: snippets/builder_vsphere_windows.json

I think related to not being able to find the snippet. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions