Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 792876 - dev-vcs/mercurial-5.7: TypeError: _compile() argument 1 must be str, not bytes
Summary: dev-vcs/mercurial-5.7: TypeError: _compile() argument 1 must be str, not bytes
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Cédric Krier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 792042
  Show dependency tree
 
Reported: 2021-05-29 17:15 UTC by Michał Górny
Modified: 2021-05-30 11:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-05-29 17:15:59 UTC
$ hg clone https://foss.heptapod.net/openpyxl/openpyxl
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.9/hg", line 59, in <module>
    dispatch.run()
  File "/usr/lib/python3.9/site-packages/mercurial/dispatch.py", line 143, in run
    status = dispatch(req)
  File "/usr/lib/python3.9/site-packages/mercurial/dispatch.py", line 245, in dispatch
    status = _rundispatch(req)
  File "/usr/lib/python3.9/site-packages/mercurial/dispatch.py", line 267, in _rundispatch
    req.ui = uimod.ui.load()
  File "/usr/lib/python3.9/site-packages/mercurial/ui.py", line 316, in load
    u.read_resource_config(f, trust=True)
  File "/usr/lib/python3.9/site-packages/mercurial/ui.py", line 444, in read_resource_config
    self._readconfig(
  File "/usr/lib/python3.9/site-packages/mercurial/ui.py", line 468, in _readconfig
    cfg.read(filename, fp, sections=sections, remap=remap)
  File "/usr/lib/python3.9/site-packages/mercurial/config.py", line 224, in read
    self.parse(
  File "/usr/lib/python3.9/site-packages/mercurial/config.py", line 128, in parse
    sectionre = util.re.compile(br'\[([^\[]+)\]')
  File "/usr/lib/python3.9/site-packages/mercurial/util.py", line 2191, in compile
    return re2.compile(pat)
  File "/usr/lib/python3.9/site-packages/re2.py", line 56, in compile
    return _compile(pattern, error)
TypeError: _compile() argument 1 must be str, not bytes
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-30 05:31:51 UTC
cedk, can you bump to 5.8? May help.
Comment 2 Joonas Niilola gentoo-dev 2021-05-30 05:37:15 UTC
I'd like to point out that these changes, 
https://github.com/gentoo/gentoo/pull/15825
should be incorporated in the next version bump too.
Comment 3 Cédric Krier gentoo-dev 2021-05-30 07:30:36 UTC
It seems to be related to https://phab.mercurial-scm.org/D10284
Comment 4 Larry the Git Cow gentoo-dev 2021-05-30 08:07:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8504300df866ddfdbd7f288cbfe0c9ff1f1232e

commit b8504300df866ddfdbd7f288cbfe0c9ff1f1232e
Author:     Cédric Krier <cedk@gentoo.org>
AuthorDate: 2021-05-30 08:00:24 +0000
Commit:     Cédric Krier <cedk@gentoo.org>
CommitDate: 2021-05-30 08:07:18 +0000

    dev-vcs/mercurial: version bumps and remove zsh-completion use
    
    Bug: https://bugs.gentoo.org/792876
    Closes: https://github.com/gentoo/gentoo/pull/15825
    Package-Manager: Portage-3.0.18, Repoman-3.0.2
    Signed-off-by: Cédric Krier <cedk@gentoo.org>

 dev-vcs/mercurial/Manifest                         | 18 ++++++++++---
 .../{mercurial-5.7.ebuild => mercurial-5.8.ebuild} | 31 +++++++++++++---------
 2 files changed, 33 insertions(+), 16 deletions(-)