Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14505

Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'

Path csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From Nilesh Patra <nilesh@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'
Date Sat, 01 Oct 2022 12:00:04 +0200
Message-ID <FbHia-bhQO-9@gated-at.bofh.it> (permalink)
References <F6W89-8lxe-11@gated-at.bofh.it> <F6W89-8lxe-11@gated-at.bofh.it>
X-Original-To 1020041@bugs.debian.org
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Oct 1 09:51:10 2022
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.999
Reply-To Nilesh Patra <nilesh@debian.org>, 1020041@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian QA Group <packages@qa.debian.org>
X-Debian-Pr-Message followup 1020041
X-Debian-Pr-Package src:zope.testrunner
X-Debian-Pr-Keywords bookworm ftbfs sid
X-Debian-Pr-Source zope.testrunner
Organization The Debian Project
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vbxxqqo3aodwromc"
Content-Disposition inline
X-Debian-User nilesh
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1736982
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 61
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Sat, 1 Oct 2022 15:18:50 +0530
X-Original-Message-ID <20221001094850.tg4qjmzxgswpiavz@posteo.in>
X-Original-References <Yya0kieWcGF27xAo@xanadu.blop.info> <Yya0kieWcGF27xAo@xanadu.blop.info>
Xref csiph.com linux.debian.bugs.dist:1119450 linux.debian.maint.python:14505

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

reassign -1 dh-python 5.20220924
stop

Hi,

On Sun, 18 Sep 2022 08:02:58 +0200 Lucas Nussbaum <lucas@debian.org> wrote:
> Source: zope.testrunner
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > dh_python3 --shebang=/usr/bin/python3 -X tests
> > I: dh_python3 tools:114: replacing shebang in debian/python3-zope.testrunner/usr/bin/zope-testrunner3
> > I: dh_python3 tools:114: replacing shebang in debian/python3-zope.testrunner/usr/bin/zope-testrunner
> > Traceback (most recent call last):
> >   File "/usr/bin/dh_python3", line 284, in <module>
> >     main()
> >   File "/usr/bin/dh_python3", line 214, in main
> >     dependencies.parse(stats, options)
> >   File "/usr/share/dh-python/dhpython/depends.py", line 228, in parse
> >     args += " -X '%s'" % pattern.replace("'", r"'\''")
> > AttributeError: 're.Pattern' object has no attribute 'replace'
> > make[1]: *** [debian/rules:20: override_dh_python3] Error 1

This looks like a bug with dh-python itself. Maybe this needs to be "sub" instead of "replace", similar
string regex replaces at a couple more places.

Please let me know if I made a mistake here and this is not a bug in dh-python.

-- 
Best,
Nilesh

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace' Nilesh Patra <nilesh@debian.org> - 2022-10-01 12:00 +0200

csiph-web