On Tue, 2 Jul 2024 15:35:11 +0200 Lucas Nussbaum <lu...@debian.org> wrote:
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> PYTHONPATH=/<<PKGBUILDDIR>> help2man -N --version-string=0.10.0 -o py2dsc.1 -n 'creates 
Debian source package from Python package' /<<PKGBUILDDIR>>/debian/python3-stdeb/usr/bin/py2dsc
> help2man: can't get `--help' info from 
/<<PKGBUILDDIR>>/debian/python3-stdeb/usr/bin/py2dsc
> Try `--no-discard-stderr' if option outputs to stderr
> make[1]: *** [debian/rules:15: py2dsc.1] Error 1

The help2man invocation is obscuring the real error, which is:

$ PYTHONPATH=. /build/stdeb-0.10.0/debian/python3-stdeb/usr/bin/py2dsc
Traceback (most recent call last):
  File "/build/stdeb-0.10.0/stdeb/cli_runner.py", line 8, in <module>
    from ConfigParser import SafeConfigParser  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'ConfigParser'

There's an upstream PR for this at <https://github.com/astraw/stdeb/pull/196>, which has been approved by an upstream maintainer (but not yet merged). I cherry-picked it on top of 0.10.0-2 and it works fine, so I'll prepare an NMU shortly.

-- Kunal

Reply via email to