Debian Bug report logs -
#845335
bzr: Broken with python2.7 2.7.12-7
Reported by: Dmitry Shachnev <mitya57@debian.org>
Date: Tue, 22 Nov 2016 15:45:01 UTC
Severity: grave
Found in version bzr/2.7.0+bzr6619-2
Fixed in version bzr/2.7.0+bzr6619-3
Done: Jelmer Vernooij <jelmer@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, python2.7@qa.debian.org, Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>:
Bug#845335; Package bzr.
(Tue, 22 Nov 2016 15:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Dmitry Shachnev <mitya57@debian.org>:
New Bug report received and forwarded. Copy sent to python2.7@qa.debian.org, Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>.
(Tue, 22 Nov 2016 15:45:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: bzr
Version: 2.7.0+bzr6619-2
Severity: grave
After the latest python2.7 update, I get this:
$ bzr pull
bzr: ERROR: exceptions.TypeError: first argument must be string or compiled pattern
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
return self._operation.run_simple(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
result = func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1210, in run
self.outf.write(gettext("Using saved parent location: %s\n") % display_url)
File "/usr/lib/python2.7/dist-packages/bzrlib/lazy_import.py", line 117, in __call__
return obj(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bzrlib/i18n.py", line 40, in gettext
install()
File "/usr/lib/python2.7/dist-packages/bzrlib/i18n.py", line 92, in install
_translations = install_translations(lang)
File "/usr/lib/python2.7/dist-packages/bzrlib/i18n.py", line 114, in install_translations
fallback=True)
File "/usr/lib/python2.7/gettext.py", line 554, in translation
t = _translations.setdefault(key, class_(fp))
File "/usr/lib/python2.7/gettext.py", line 255, in __init__
self._parse(fp)
File "/usr/lib/python2.7/gettext.py", line 391, in _parse
self.plural = c2py(plural)
File "/usr/lib/python2.7/gettext.py", line 177, in c2py
result, nexttok = _parse(_tokenize(plural))
File "/usr/lib/python2.7/gettext.py", line 114, in _parse
nexttok = next(tokens)
File "/usr/lib/python2.7/gettext.py", line 85, in _tokenize
for mo in re.finditer(_token_pattern, plural):
File "/usr/lib/python2.7/re.py", line 190, in finditer
return _compile(pattern, flags).finditer(string)
File "/usr/lib/python2.7/re.py", line 247, in _compile
raise TypeError, "first argument must be string or compiled pattern"
TypeError: first argument must be string or compiled pattern
bzr 2.8.0dev1 on python 2.7.12 (Linux-4.8.0-1-amd64-x86_64-with-debian-
stretch-sid)
arguments: ['/usr/bin/bzr', 'pull']
plugins: bash_completion[2.8.0dev1], changelog_merge[2.8.0dev1],
grep[2.8.0dev1], launchpad[2.8.0dev1], netrc_credential_store[2.8.0dev1],
news_merge[2.8.0dev1], po_merge[2.8.0dev1], weave_fmt[2.8.0dev1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
It seems that bzrlib tries to replace re.compile with its own function
(see reset_compile() in bzrlib/lazy_regex.py), and new Python 2 does not like
that.
In particular, _token_pattern in gettext is an instance of LazyRegex class,
and that does not pass the sre_compile.isstring() check (and so re._compile
raises an exception when it gets that as an argument).
A workaround is downgrading python2.7 to the previous version (i.e. 2.7.12-3
from testing), or running Bzr with LC_ALL=C.UTF-8.
--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Jelmer Vernooij <jelmer@debian.org>:
You have taken responsibility.
(Sun, 27 Nov 2016 13:51:04 GMT) (full text, mbox, link).
Notification sent
to Dmitry Shachnev <mitya57@debian.org>:
Bug acknowledged by developer.
(Sun, 27 Nov 2016 13:51:05 GMT) (full text, mbox, link).
Message #10 received at 845335-close@bugs.debian.org (full text, mbox, reply):
Source: bzr
Source-Version: 2.7.0+bzr6619-3
We believe that the bug you reported is fixed in the latest version of
bzr, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 845335@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jelmer Vernooij <jelmer@debian.org> (supplier of updated bzr package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 26 Nov 2016 16:17:06 +0000
Source: bzr
Binary: bzr python-bzrlib python-bzrlib-dbg python-bzrlib.tests bzr-doc
Architecture: source all amd64
Version: 2.7.0+bzr6619-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>
Changed-By: Jelmer Vernooij <jelmer@debian.org>
Description:
bzr - easy to use distributed version control system
bzr-doc - easy to use distributed version control system (documentation)
python-bzrlib - distributed version control system - python library
python-bzrlib-dbg - distributed version control system - debug extension
python-bzrlib.tests - distributed version control system - testsuite
Closes: 845335
Changes:
bzr (2.7.0+bzr6619-3) unstable; urgency=medium
.
* Fix compatibility with python2.7 2.7.12-7. Patch by Vincent.
Closes: #845335 LP: #1644003
* Sanitize URL scheme when running HTTP proxy tests for curl.
LP: #1645017
Checksums-Sha1:
d27ff3b9315d9edd94d9857298d1caa9ce1843ee 2480 bzr_2.7.0+bzr6619-3.dsc
9beaafc7bf2dc48b1c490f8cc4412d606130ed63 67252 bzr_2.7.0+bzr6619-3.debian.tar.xz
e3eafbac5fbfecbab4cb5910805c87a37f0755fa 4488058 bzr-doc_2.7.0+bzr6619-3_all.deb
56f1f6aab8d0e58212d6ee9e694ec0d1a0135e50 55142 bzr_2.7.0+bzr6619-3_all.deb
fc76a8ecd083c62350d07e2bc430f9edd37cdecd 8764 bzr_2.7.0+bzr6619-3_amd64.buildinfo
bca3d1b8bf2f230742245330df35e80f7dfb36d8 2280428 python-bzrlib-dbg_2.7.0+bzr6619-3_amd64.deb
d9982adac55ab1bdb0d7ff53784e54bbe3d9879d 1026012 python-bzrlib.tests_2.7.0+bzr6619-3_all.deb
d72e5331af3f02cfe8875e9f47fe77f27fb1378e 1676220 python-bzrlib_2.7.0+bzr6619-3_amd64.deb
Checksums-Sha256:
3cd48233011934528e65395d3fc0a137004decf07459dc8e332f45a658800627 2480 bzr_2.7.0+bzr6619-3.dsc
57934f04f3dd5fbe511d01eb830eb6ef75883d22a58fc70dbc61b91ea3ca51e3 67252 bzr_2.7.0+bzr6619-3.debian.tar.xz
d94d7c96d415785d854cdfb06aa488ec54f6999dbd05ece466ea23155d2e4f9e 4488058 bzr-doc_2.7.0+bzr6619-3_all.deb
7673c2168a6fdb9c6ee7d10350a273940a3b4350be6e0ab599b4e36035f3e39c 55142 bzr_2.7.0+bzr6619-3_all.deb
24fe6e271ab55ebd4177df023e77ba1bfad9a712155557472d969314d61262e9 8764 bzr_2.7.0+bzr6619-3_amd64.buildinfo
108dc10eba38b9ea5f31646a424ec7f320ff6493b51f67ea27913005e7bd276f 2280428 python-bzrlib-dbg_2.7.0+bzr6619-3_amd64.deb
8cd0a8ead8a04be30788802ae948585e704238ba6e0dc0b9a2f429f907a99aca 1026012 python-bzrlib.tests_2.7.0+bzr6619-3_all.deb
a58224dc08311e32e5671f44e3185c1279765e0ac6473d0e1e5205693beddade 1676220 python-bzrlib_2.7.0+bzr6619-3_amd64.deb
Files:
6ef985ba57cd1b3297c3e31d37cd7920 2480 vcs optional bzr_2.7.0+bzr6619-3.dsc
d2f360476527cb06a338c9441bb8008f 67252 vcs optional bzr_2.7.0+bzr6619-3.debian.tar.xz
1274bcddaf42b25b26a854ef8a589c8f 4488058 doc optional bzr-doc_2.7.0+bzr6619-3_all.deb
8d8daedf93e9b77443d5b5626068c09a 55142 vcs optional bzr_2.7.0+bzr6619-3_all.deb
c14e83de6c6ddf14bd6a53368032f39d 8764 vcs optional bzr_2.7.0+bzr6619-3_amd64.buildinfo
60f48a286017b8197f912a43051dacb7 2280428 debug extra python-bzrlib-dbg_2.7.0+bzr6619-3_amd64.deb
72a18c383167e559b82b886baacfa32a 1026012 python optional python-bzrlib.tests_2.7.0+bzr6619-3_all.deb
56a9f9a95f12bf4dfd1a3cd7dc0b54f9 1676220 python optional python-bzrlib_2.7.0+bzr6619-3_amd64.deb
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEoX1YPWJ8eQgrAMsfmi0kpQTR6fgFAlg64WMACgkQmi0kpQTR
6fheNgf/eY6YcayiWeG7lVr/WdpsvHnocI3neejRuKYJHY/sRBLD5v85M8AO22Uv
YcWIo903DUOviAIaYfnsLC4aGezODwm9+nBessJ9jf/TxA8ih+1yu7nbxCQ6xPQZ
7z3ErBhqdTR7G3/+nX+eTWpwXtu53ceqN1x5wDO6+ZRV2uUBKYRdxnqVHa3V87bz
ApD4q2fpEtgXxqBYX8q/4qS1geHib/2/DebruKQHm3DUWnUdmjSW9A7B/ZbUjQVl
nhuqZAq3g6CZhHS/CJl3dXTpuhP5OxdWj5OPRW2u/51xOh9bGuZc4uQ0oCelCzX6
O1sYQv2kSijYFELMXZAA05VWfl8ToQ==
=kulT
-----END PGP SIGNATURE-----
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>:
Bug#845335; Package bzr.
(Wed, 07 Dec 2016 17:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Ben Dooks <bjdooks@googlemail.com>:
Extra info received and forwarded to list. Copy sent to Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>.
(Wed, 07 Dec 2016 17:51:02 GMT) (full text, mbox, link).
Message #15 received at 845335@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
The "bzr: ERROR: exceptions.TypeError: first argument must be string or
compiled pattern" is still there after updating.
bzr is already the newest version (2.7.0+bzr6619-1).
--
Ben Dooks, http://www.fluff.org/ben/ bjdooks@googlemail.com
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>:
Bug#845335; Package bzr.
(Wed, 07 Dec 2016 21:36:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Jelmer Vernooij <jelmer@jelmer.uk>:
Extra info received and forwarded to list. Copy sent to Debian Bazaar Maintainers <pkg-bazaar-maint@lists.alioth.debian.org>.
(Wed, 07 Dec 2016 21:36:03 GMT) (full text, mbox, link).
Message #20 received at 845335@bugs.debian.org (full text, mbox, reply):
On Wed, Dec 07, 2016 at 05:47:52PM +0000, Ben Dooks wrote:
> The "bzr: ERROR: exceptions.TypeError: first argument must be string or
> compiled pattern" is still there after updating.
>
> bzr is already the newest version (2.7.0+bzr6619-1).
This has been fixed. The latest version of bzr (currently in unstable, doesn't
seem to have made it to testing) is 2.7.0+bzr6619-3.
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 27 Jan 2017 09:04:10 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jan 6 22:04:02 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.