#1145125 python3-click-man: undeclared dependency ‘python3-pkg-resources’

#1145125#5
Date:
2026-08-23 01:20:50 UTC
From:
To:
The program, when installed in a minimal environment and run, crashes:

=====
$ click-man --help
Traceback (most recent call last):
  File "/usr/bin/click-man", line 33, in <module>
    sys.exit(load_entry_point('click-man==0.4.2', 'console_scripts', 'click-man')())
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/click-man", line 25, in importlib_load_entry_point
    return next(matches).load()
           ~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 759, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/click_man/__main__.py", line 14, in <module>
    from pkg_resources import iter_entry_points, get_distribution
ModuleNotFoundError: No module named 'pkg_resources'
=====

The installed Python library ‘click_man’ attempts to import ‘pkg_resources’
but that module is not installed.

This is because the ‘python3-click-man’ Debian binary package fails to
declare a dependency on ‘python3-pkg-resources’.

#1145125#10
Date:
2026-08-23 01:24:48 UTC
From:
To:
Per my understanding of things, click-man should stop using
pkg_resources going forward.

Chris

#1145125#17
Date:
2026-08-23 09:36:10 UTC
From:
To:
Hi,

Yes indeed both declared & undeclared dependencies on
python3-pkg-resources should be RC-buggy.

I propose to NMU the new version tomorrow.

I had a look at what's in github and it uses importlib.metadata

Greetings

Alexandre

Le dim. 23 août 2026 à 03:24, Chris Hofstaedtler <zeha@debian.org> a écrit :

#1145125#22
Date:
2026-08-23 23:58:49 UTC
From:
To:
Control: severity 1145127 serious

This reasoning appears to make bug#1145127 (another undeclared dependency)
also Severity: serious. I am altering that bug report accordingly.

I wonder whether we might wait for the maintainer (Ryan Pavlik, also on
this message) to package an upstream version that addresses this? See
bug#1145124 <URL: https://bugs.debian.org/1145124>.

Ryan, if that is not happening soon, you probably want to let Alexandre D.
know so that he can go ahead and perform the actions he proposed.