Missing depend on python-jinja2

Bug #1819313 reported by balp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcovr (Ubuntu)
New
Undecided
Unassigned

Bug Description

Installing gcovr on it's own gives an stack trace when starting:

[balp@laurana Cpp (master ✗)]$ sudo apt install gcovr
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-markupsafe
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  gcovr
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 30,5 kB of archives.
After this operation, 144 kB of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu cosmic/universe amd64 gcovr all 4.1-1 [30,5 kB]
Fetched 30,5 kB in 0s (405 kB/s)
Selecting previously unselected package gcovr.
(Reading database ... 451544 files and directories currently installed.)
Preparing to unpack .../archives/gcovr_4.1-1_all.deb ...
Unpacking gcovr (4.1-1) ...
Setting up gcovr (4.1-1) ...
Processing triggers for man-db (2.8.4-2) ...
[balp@laurana Cpp (master ✗)]$ gcovr
Traceback (most recent call last):
  File "/usr/bin/gcovr", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3105, in <module>
    @_call_aside
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3089, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3118, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 578, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 781, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'jinja2' distribution was not found and is required by gcovr

Installing python-jinja2 makes the package work as expected:

[balp@laurana Cpp (master ✗)]$ sudo apt install python-jinja2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  python-jinja2-doc
The following NEW packages will be installed:
  python-jinja2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 94,6 kB of archives.
After this operation, 487 kB of additional disk space will be used.
Get:1 http://se.archive.ubuntu.com/ubuntu cosmic/main amd64 python-jinja2 all 2.10-1 [94,6 kB]
Fetched 94,6 kB in 0s (875 kB/s)
Selecting previously unselected package python-jinja2.
(Reading database ... 451572 files and directories currently installed.)
Preparing to unpack .../python-jinja2_2.10-1_all.deb ...
Unpacking python-jinja2 (2.10-1) ...
Setting up python-jinja2 (2.10-1) ...
[balp@laurana Cpp (master ✗)]$ gcovr
------------------------------------------------------------------------------
                           GCC Code Coverage Report
Directory: .
------------------------------------------------------------------------------
File Lines Exec Cover Missing
------------------------------------------------------------------------------
build_meson/HtmlPageConverter_Test@exe/HtmlPageConverter_Test.cpp
                                               2 2 100%
build_meson/HtmlTextConverter_Test@exe/HtmlTextConverter_Test.cpp
                                               2 2 100%
build_meson/LeaderBoard@sta/Driver.cpp 9 0 0% 3,6,8,11,13,16,18,20,22
build_meson/LeaderBoard@sta/Driver.h 2 0 0% 25,28
build_meson/LeaderBoard@sta/LeaderBoard.cpp
                                              18 0 0% 6,9,11-12,14,16-18,20,23,27,30,32-34,36,38,42
build_meson/LeaderBoard@sta/Race.cpp 21 0 0% 9,11,13-14,16,18,22,24-25,27,29,31,33,36,38,41,43,46,48,51,53
build_meson/LeaderBoard@sta/SelfDrivingCar.cpp
                                               5 0 0% 4,7,9,12,14
build_meson/LeaderBoard_Test@exe/LeaderBoard_Test.cpp
                                               2 2 100%
build_meson/TelemetrySystem@sta/TelemetryClient.cpp
                                              41 0 0% 8,12,15,17,20,22,24,28,30,33,35,38,40,42,45,48-62,64,70,72,74,77-79,81,87-88,91
build_meson/TelemetrySystem@sta/TelemetryDiagnosticControls.cpp
                                              17 0 0% 6,9,12,14,17,19,22,24,26,28-29,31-32,35,37,40-41
build_meson/TelemetrySystem_Test@exe/TelemetryDiagnosticControls_Test.cpp
                                               2 2 100%
build_meson/TextConverter@sta/HtmlPagesConverter.cpp
                                              25 0 0% 8,10,12-15,17-18,20-21,24,27,29-33,35,37,39-40,42-43,46,48
build_meson/TextConverter@sta/HtmlTextConverter.cpp
                                              11 0 0% 5,8,10,12-14,16-17,19,22,24
build_meson/TextConverter@sta/StringEscapeUtils.h
                                               8 0 0% 8,10-16
build_meson/TicketDispenser@sta/TicketDispenser.cpp
                                               3 0 0% 5,7-8
build_meson/TicketDispenser@sta/TurnNumberSequence.cpp
                                               2 0 0% 6,8
build_meson/TicketDispenser@sta/TurnTicket.cpp
                                               3 0 0% 4,7,9
build_meson/TicketDispenser_Test@exe/TicketDispenser_Test.cpp
                                               2 2 100%
build_meson/TirePressureMonitoring@sta/Alarm.cpp
                                               7 0 0% 4,7,9,11,13,17,19
build_meson/TirePressureMonitoring@sta/Sensor.cpp
                                               5 0 0% 7,9,12,15-16
build_meson/tirepressure_test@exe/Alarm_Test.cpp
                                               2 2 100%
------------------------------------------------------------------------------
TOTAL 189 12 6%
------------------------------------------------------------------------------

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.