[Pkg-bazaar-maint] Bug#918723: "ERROR: TypeError: a bytes-like object is required, not 'str'" on committing

Jelmer Vernooij jelmer at jelmer.uk
Tue Jan 8 21:13:54 GMT 2019


tags 918723 +confirmed
tags 918723 +upstream
thanks

Hi Martin,

On Tue, Jan 08, 2019 at 07:52:38PM +0100, Martin Steigerwald wrote:
>   File "/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.py", line 883, in autopack
>     return self._do_autopack()
>   File "/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.py", line 924, in _do_autopack
>     reload_func=self._restart_autopack)
>   File "/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.py", line 943, in _execute_pack_operations
>     result = packer.pack()
>   File "/usr/lib/python3/dist-packages/breezy/bzr/pack_repo.py", line 711, in pack
>     return self._create_pack_from_packs()
>   File "/usr/lib/python3/dist-packages/breezy/bzr/knitpack_repo.py", line 914, in _create_pack_from_packs
>     new_pack.signature_index)
>   File "/usr/lib/python3/dist-packages/breezy/bzr/knitpack_repo.py", line 639, in _copy_nodes
>     write_index, pb, output_lines=output_lines)
>   File "/usr/lib/python3/dist-packages/breezy/bzr/knitpack_repo.py", line 663, in _do_copy_nodes
>     bits = value[1:].split(' ')
> TypeError: a bytes-like object is required, not 'str'
> 
> brz 3.0a2 on python 3.7.2 (Linux-4.20.0-tp520-x86_64-with-debian-buster-sid)
> arguments: ['/usr/bin/brz', 'commit', '-m', 'Updated.', '.gnupg/pubring.gpg']
> plugins: bash_completion[3.0a2], changelog_merge[3.0a2],
>     commitfromnews[unknown], cvs[3.0a2], darcs[unknown], email[unknown],
>     fastimport[unknown], grep[3.0a2], launchpad[3.0a2], mtn[3.0a2],
>     netrc_credential_store[3.0a2], news_merge[3.0a2], po_merge[3.0a2],
>     propose[unknown], repodebug[unknown], stats[3.0a2], upload[3.0a2],
>     weave_fmt[3.0a2]
> encoding: 'utf-8', fsenc: 'utf-8', lang: 'de_DE.UTF-8'
> 
> *** Bazaar has encountered an internal error.  This probably indicates a
>     bug in Bazaar.  You can help us fix it by filing a bug report at
>         https://bugs.launchpad.net/brz/+filebug
>     including this traceback and a description of the problem.
Hmm, interesting. It looks like you have encountered an untested
corner case while dealing with signatures during autopack when running
on Python 3. It looks like we missed this when porting to Python 3.

I'll make sure this gets fixed before the beta.

> I attempted to write to bazaar at lists.canonical.com but got:
> 
> % postqueue -p
> -Queue ID-  --Size-- ----Arrival Time---- -Sender/Recipient-------
> E086C42C103     5829 Sat Jan  5 15:08:39  mymailaddress
>   (connect to lists-mx.canonical.com[162.213.33.250]:25: Connection timed out)
>                                          bazaar at lists.canonical.com
> 
> -- 5 Kbytes in 1 Request.
Hmm, I'm not sure what that's about. lists.canonical.com is still up,
so I'm guessing that is a transient issue. Can you perhaps try again?

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-bazaar-maint/attachments/20190108/40f8a56d/attachment.sig>


More information about the Pkg-bazaar-maint mailing list