[Python-apps-team] Bug#981922: irkerhook fails with mercurial and python 3

Neil Muller drnlmuller+bugs at gmail.com
Fri Feb 5 07:17:56 GMT 2021


Package: irker
Version: 2.18+dfsg-4
Severity: normal

Dear Maintainer,

irkerhook fails if run against mercurial using python 3.

With irkerhook set as a commit hook for testing, trying to commit a file
to a mercurial repo produces the following traceback

> error: commit.irker hook raised an exception: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/mercurial/hook.py", line 117, in pythonhook
>     r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
>   File "/usr/bin/irkerhook", line 442, in hg_hook
>     extractor = HgExtractor([(ui, repo)])
>   File "/usr/bin/irkerhook", line 396, in __init__
>     self.project = ui.config('irker', 'project')
>   File "/usr/lib/python3/dist-packages/mercurial/ui.py", line 609, in config
>     value = self._config(
>   File "/usr/lib/python3/dist-packages/mercurial/ui.py", line 629, in _config
>     msg %= (section, name)
> TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'str'


This has been fixed upstream - see
https://gitlab.com/esr/irker/-/commit/6e9372a2e297b0925d951d178ce39840d99277c6
- but not yet included in a release.

The 2 subsequent commits, fa0c06d9b51d758a4d41c99c0ea867cbda514cb7 &
ad8f8552bc8bb7ff31848ccdc729f79aa63e88aa alos look relevant as they
update irkerhook to recent mercurial changes.

-- System Information:
Debian Release: bullseye/sid
Architecture: i386 (x86_64)

Kernel: Linux 4.19.0-14-amd64 (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages irker depends on:
ii  adduser   3.118
ii  lsb-base  11.1.0
ii  python3   3.9.1-1

irker recommends no packages.

irker suggests no packages.

-- no debconf information

--1612506787-eximdsn-675341442--

-- 
Neil Muller



More information about the Python-apps-team mailing list