[dput-ng-maint] Bug#893309: post_upload_command output broken (Python 3 issue?)

Russ Allbery rra at debian.org
Sat Mar 17 21:43:15 UTC 2018


Package: dput-ng
Version: 1.18
Severity: normal

dput-ng throws an exception when reporting the output from a
post_upload_command and does not show the output.  The exception is:

Traceback (most recent call last):
  File "/usr/bin/dput", line 124, in <module>
    upload_package(changes, args)
  File "/usr/lib/python3/dist-packages/dput/uploader.py", line 352, in invoke_dput
    logger.warning("No hooks defined in the profile. "
  File "/usr/lib/python3.6/contextlib.py", line 88, in __exit__
    next(self.gen)
  File "/usr/lib/python3/dist-packages/dput/uploader.py", line 175, in uploader
    obj._post_hook()
  File "/usr/lib/python3/dist-packages/dput/uploader.py", line 68, in _post_hook
    self._run_hook("post_upload_command")
  File "/usr/lib/python3/dist-packages/dput/uploader.py", line 86, in _run_hook
    sys.stdout.write(output)  # XXX: Fixme
TypeError: write() argument must be str, not bytes

Looks like a Python 2 to Python 3 unicode handling issue?

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dput-ng depends on:
ii  python3       3.6.4-1
ii  python3-dput  1.18

Versions of packages dput-ng recommends:
ii  bash-completion  1:2.7-1
ii  python-paramiko  2.4.0-1

dput-ng suggests no packages.

-- no debconf information



More information about the dput-ng-maint mailing list