[Submission: Failed] jinja2.exceptions.TemplateNotFound: hexr.xml

Bug #1463705 reported by Zygmunt Krynicki on 2015-06-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlainBox (Toolkit)
High
Zygmunt Krynicki

Bug Description

This is a public copy of a private bug https://bugs.launchpad.net/hexr/+bug/1463646

ubuntu@201304-13407:~/.cache/plainbox/logs$ plainbox session export pbox-fhsyme38 -f xml -o /tmp/test.xml
CRITICAL plainbox.crashes: Executable 'plainbox' invoked with Namespace(command=<plainbox.impl.commands.cmd_session.SessionCommand object at 0x7f673e57d4a8>, debug_console=False, debug_interrupt=False, default_session_cmd='list', flag=None, log_level=None, only_ids=False, output_file=<_io.BufferedWriter name='/tmp/test.xml'>, output_format='xml', output_options='', pdb=False, session_cmd='export', session_id='pbox-fhsyme38', trace=[]) has crashed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/cmd_session.py", line 59, in invoked
    return SessionInvocation(ns, self.provider_loader).run()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 66, in run
    self.export_session()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 150, in export_session
    exporter = self._create_exporter()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 196, in _create_exporter
    return exporter_cls(option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/hexr.py", line 98, in __init__
    super().__init__("hexr.xml", option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/jinja2.py", line 65, in __init__
    self.template = env.get_template(jinja2_template)
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 791, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 765, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 178, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: hexr.xml
Traceback (most recent call last):
  File "/usr/bin/plainbox", line 9, in <module>
    load_entry_point('plainbox==0.22.dev0', 'console_scripts', 'plainbox')()
  File "/usr/lib/python3/dist-packages/plainbox/impl/box.py", line 122, in main
    raise SystemExit(PlainBoxTool().main(argv))
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 324, in main
    return self.dispatch_and_catch_exceptions(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 560, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 556, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/cmd_session.py", line 59, in invoked
    return SessionInvocation(ns, self.provider_loader).run()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 66, in run
    self.export_session()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 150, in export_session
    exporter = self._create_exporter()
  File "/usr/lib/python3/dist-packages/plainbox/impl/commands/inv_session.py", line 196, in _create_exporter
    return exporter_cls(option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/hexr.py", line 98, in __init__
    super().__init__("hexr.xml", option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/jinja2.py", line 65, in __init__
    self.template = env.get_template(jinja2_template)
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 791, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 765, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/lib/python3/dist-packages/jinja2/loaders.py", line 178, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: hexr.xml

Related branches

Zygmunt Krynicki (zyga) on 2015-06-10
Changed in plainbox:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Zygmunt Krynicki (zyga)
milestone: none → 0.22
Zygmunt Krynicki (zyga) on 2015-06-10
Changed in plainbox:
status: Confirmed → Fix Committed
Changed in plainbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers