html exporter crashes on TemplateNotFound

Bug #1443472 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PlainBox (Toolkit)
Fix Released
Critical
Maciej Kisielewski

Bug Description

Using daily plainbox I see this:

zyga@arawak:~/.cache/plainbox/logs$ LANGUAGE=en apt-cache policy plainbox
plainbox:
  Installed: 0.21+bzr3681+pkg27~ubuntu14.04.1
  Candidate: 0.21+bzr3681+pkg27~ubuntu14.04.1
  Version table:
 *** 0.21+bzr3681+pkg27~ubuntu14.04.1 0
        500 http://ppa.launchpad.net/checkbox-dev/ppa/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
     0.5.3-2 0
        500 http://es.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

2015-04-13 07:17:11 [pid:8291, thread:MainThread, reltime:142189ms] ERROR checkbox.ng.dbus_ex.decorators: DBus method call failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/checkbox_ng/dbus_ex/decorators.py", line 224, in sanity
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 244, in wrapper
    retval = func(**bound.arguments)
  File "/usr/lib/python3/dist-packages/checkbox_ng/service.py", line 1223, in ExportSessionToFile
    session, output_format, option_list, output_file)
  File "/usr/lib/python3/dist-packages/plainbox/impl/highlevel.py", line 386, in export_session_to_file
    session, output_format, option_list, stream)
  File "/usr/lib/python3/dist-packages/plainbox/impl/highlevel.py", line 392, in _export_session_to_stream
    exporter = exporter_cls(option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/html.py", line 50, in __init__
    super().__init__("checkbox.html", option_list)
  File "/usr/lib/python3/dist-packages/plainbox/impl/exporter/jinja2.py", line 64, 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: checkbox.html

My suspicion is that packaging or manifest are out-of-date.

Related branches

Zygmunt Krynicki (zyga)
Changed in plainbox:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → 0.21
Changed in plainbox:
assignee: nobody → Maciej Kisielewski (kissiel)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Download full text (21.6 KiB)

zyga@arawak:~/.cache/plainbox/logs$ dpkg -L python3-plainbox
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python3-plainbox
/usr/share/doc/python3-plainbox/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/plainbox-trusted-launcher-1.1.gz
/usr/share/man/man1/plainbox-qml-shell.1.gz
/usr/bin
/usr/bin/plainbox-qml-shell
/usr/bin/plainbox-trusted-launcher-1
/usr/lib
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info/requires.txt
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info/top_level.txt
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/plainbox-0.21.dev.egg-info/entry_points.txt
/usr/lib/python3/dist-packages/plainbox
/usr/lib/python3/dist-packages/plainbox/test-data
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_hardware_info.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/example-data.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_hardware_info.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_io_log.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/example-data.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_binary_attachment.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_text_attachment.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_binary_attachment.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_comments.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_io_log.json
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_comments.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/test_dump_with_text_attachment.xml
/usr/lib/python3/dist-packages/plainbox/test-data/xml-exporter/example-data-certification-status.json
/usr/lib/python3/dist-packages/plainbox/test-data/integration-tests
/usr/lib/python3/dist-packages/plainbox/test-data/integration-tests/stub
/usr/lib/python3/dist-packages/plainbox/test-data/integration-tests/stub/true.json
/usr/lib/python3/dist-packages/plainbox/test-data/html-exporter
/usr/lib/python3/dist-packages/plainbox/test-data/html-exporter/with_certification_non_blocker.html
/usr/lib/python3/dist-packages/plainbox/test-data/html-exporter/with_certification_blocker.html
/usr/lib/python3/dist-packages/plainbox/test-data/html-exporter/with_both_certification_status.html
/usr/lib/python3/dist-packages/plainbox/test-data/html-exporter/without_certification_status.html
/usr/lib/python3/dist-packages/plainbox/data
/usr/lib/python3/dist-packages/plainbox/data/report
/usr/lib/python3/dist-packages/plainbox/data/report/checkbox.js
/usr/lib/python3/dist-packages/plainbox/data/report/checkbox.css
/usr/lib/python3/dist-packages/plainbox/data/report/hardware-1_0.rng
...

Changed in plainbox:
status: Confirmed → Triaged
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

The new html templates are not included in manifets / packaging, as confirmed.

Changed in plainbox:
status: Triaged → Fix Committed
Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :

The issue could be reproduced on latest plainbox version.

Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :
Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :
Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :
Changed in plainbox:
status: Fix Committed → Confirmed
Zygmunt Krynicki (zyga)
Changed in plainbox:
status: Confirmed → Fix Committed
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Gabriel, it seems you are still using the ~c3 version of plainbox. Can you please upgrade to ~c4 and re-test? We've fixed this in ~c4 for sure. Note that ~c4 is not available for precise yet but according to one of your attachments you are running 14.04 and this should be available as an update.

Revision history for this message
Gabriel Zhi Chen (gabrielzchen) wrote :

Retest the issue under ~c3 version of plainbox. It does not reproduce. The html exports normally. Please refer to screenshot.

Changed in plainbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.