Your message dated Fri, 6 Nov 2026 11:05:51 +0000
with message-id <[email protected]>
and subject line Re: Bug#1142708: dh-python: Uncaught distribution dependencies
has caused the Debian Bug report #1142708,
regarding dh-python: Uncaught distribution dependencies
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1142708: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1142708
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 7.20260623
Severity: normal
X-Debbugs-Cc: [email protected]
Over the years, as I have used python's entry-point feature extensively, I have
often found dependency issues that were not captured by binary packages. One
bug report that I made that is currently still open is
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126289 which reports a
dependency issue for python3-limits. Running this simple script:
import pkg_resources
for dist in pkg_resources.working_set:
try:
pkg_resources.require(dist.project_name)
except Exception as exc:
print(f"{exc.__class__.__name__}:\t{exc}")
one can see that, among the packages installed on my computer, there are 23
dependency issues:
DistributionNotFound: The 'debconf' distribution was not found and is
required by apt-listchanges
DistributionNotFound: The 'tzdata; python_version >= "3.9"' distribution was
not found and is required by arrow
ContextualVersionConflict: (agate-dbf 0.2.2 (/usr/lib/python3/dist-
packages), Requirement.parse('agate-dbf>=0.2.3'), {'csvkit'})
ContextualVersionConflict: (stone 3.3.9 (/usr/lib/python3/dist-packages),
Requirement.parse('stone<3.3.3,>=2'), {'dropbox'})
ContextualVersionConflict: (hpack 4.0.0 (/usr/lib/python3/dist-packages),
Requirement.parse('hpack<5,>=4.1'), {'h2'})
DistributionNotFound: The 'hf-xet<2.0.0,>=1.2.0' distribution was not found
and is required by huggingface-hub
ContextualVersionConflict: (packaging 26.2 (/usr/lib/python3/dist-
packages), Requirement.parse('packaging<25,>=21'), {'limits'})
ContextualVersionConflict: (protobuf 4.21.12 (/usr/lib/python3/dist-
packages), Requirement.parse('protobuf<7,>=5.26'), {'nitrokey'})
ContextualVersionConflict: (protobuf 4.21.12 (/usr/lib/python3/dist-
packages), Requirement.parse('protobuf<7,>=5.26'), {'nitrokey'})
ContextualVersionConflict: (poetry-core 2.3.1 (/usr/lib/python3/dist-
packages), Requirement.parse('poetry-core==2.3.2'), {'poetry'})
ContextualVersionConflict: (cachetools 7.0.1 (/usr/lib/python3/dist-
packages), Requirement.parse('cachetools>=7.0.3'), {'tox'})
DistributionNotFound: The 'django-stubs<5.3,>=4.2' distribution was not found
and is required by types-channels
DistributionNotFound: The 'Flask>=2.3.2' distribution was not found and is
required by types-click-web
DistributionNotFound: The 'django-stubs' distribution was not found and is
required by types-django-filter
DistributionNotFound: The 'django-stubs' distribution was not found and is
required by types-django-import-export
DistributionNotFound: The 'Flask>=2.0.0' distribution was not found and is
required by types-flask-cors
DistributionNotFound: The 'Flask>=2.0.0' distribution was not found and is
required by types-flask-migrate
DistributionNotFound: The 'Flask>=0.9' distribution was not found and is
required by types-flask-socketio
DistributionNotFound: The 'pyproj' distribution was not found and is required
by types-geopandas
DistributionNotFound: The 'pandas-stubs' distribution was not found and is
required by types-seaborn
DistributionNotFound: The 'ua-parser-builtins' distribution was not found and
is required by ua-parser
DistributionNotFound: The 'ua-parser-builtins' distribution was not found and
is required by ua-parser
ContextualVersionConflict: (sphinx 9.1.0 (/usr/lib/python3/dist-packages),
Requirement.parse('sphinx<8.3,>=8.2'), {'zzzeeksphinx'})
Shouldn't dh-python find these dependencies automatically? Or is it too
complex to automatically derive package dependencies from distribution setup
files? In the case of the bug reports I made, the dependencies were usually
specified in pyproject.toml but apparently not analyzed by dh-python's scripts
(I must confess I only know a bare minimum about dh-python).
I hope this is useful. If this is not an issue, please feel free to close this
bug.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 7.1.3+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-python depends on:
ii python3 3.14.6-1
dh-python recommends no packages.
Versions of packages dh-python suggests:
ii dpkg-dev 1.23.7
pn flit <none>
ii libdpkg-perl 1.23.7
ii python3-build 1.5.0-1
ii python3-installer 1.0.1+dfsg1-2
ii python3-wheel 0.47.0-1
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Johnny (2026.07.28_09:57:30_+0100)
The version conflicts may be harmless, for example packages that
require a different version of sphinx. But in the case of h2, one
would think that, if the maintainer took the time to specify that the
version of hpack must be greater than 4.1, it means h2 wouldn't work
normally with version 4.0.
In my experience these requirements are often stricter than they need to
be. Minimum versions can be bumped to get around bugs or security issues
that we may resolve with patches, rather than pulling in a new upstream
version.
Also, in Debian we can only have one version of each package, and so we
often have to violate some requirements to put things together in a
working whole.
Very often upstreams have conservative maximum version restrictions,
because they don't know what the future will bring. With pkg_resources
we often had to patch out these restrictions to be able to violate them
without pkg_resources blowing up.
At least with importlib.metadata, these violations don't stop things
from working.
So... how do we know that this is OK?
Typically, if we can run an upstream's test suite we will do this at
build time, and in autopkgtests. A package won't migrate to Debian
testing, unless its autopkgtests, and the autopkgtests for all the
packages that depend on it, all pass (or at least, don't regress).
That picks up a lot of these kind of issues early. There may be some
minor latent bugs, of course. But... those are just bugs like any other.
We can't avoid all bugs.
If you still think this is not an issue, you may close this bug now.
I thought I ought to report it.
I've closed it.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272
--- End Message ---