Missing dependency on python3-sh

Bug #1744862 reported by Niels Böhm
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gitlint (Debian)
Fix Released
Unknown
gitlint (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Apparently, gitlint needs the Python "sh" package:

$ gitlint --help
Traceback (most recent call last):
  File "/usr/bin/gitlint", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3144, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3128, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3157, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 666, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 984, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 870, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'sh==1.11' distribution was not found and is required by gitlint

This can be solved by installing python3-sh manually, but obviously gitlint should depend on it so it gets pulled in automatically.

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I found a corresponding bug report in Debian, so I've attached a bug watch and marked this as confirmed.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in gitlint (Ubuntu):
status: New → Confirmed
tags: added: bionic bitesize packaging
Changed in gitlint (Debian):
status: Unknown → New
Changed in gitlint (Debian):
status: New → Fix Released
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

This issue was fixed in gitlint 0.9.0-2 which has now been synced to Ubuntu bionic.

Changed in gitlint (Ubuntu):
status: Confirmed → 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.