"first argument must be string or compiled pattern" with python 2.7.12-7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Unassigned |
Bug Description
bzr's monkeypatching of various functions in the 're' module breaks when it's used with python 2.7.12-7 (in Debian):
% LANG=C LC_ALL=C bzr pull
first argument must be string or compiled pattern
first argument must be string or compiled pattern
first argument must be string or compiled pattern
first argument must be string or compiled pattern
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
return obj(*args, **kwargs)
File "/usr/lib/
install()
File "/usr/lib/
_translations = install_
File "/usr/lib/
fallback=True)
File "/usr/lib/
t = _translations.
File "/usr/lib/
self._parse(fp)
File "/usr/lib/
self.plural = c2py(plural)
File "/usr/lib/
result, nexttok = _parse(
File "/usr/lib/
nexttok = next(tokens)
File "/usr/lib/
for mo in re.finditer(
File "/usr/lib/
return _compile(pattern, flags).
File "/usr/lib/
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-
stretch-sid)
arguments: ['/usr/bin/bzr', 'pull']
plugins: bash_completion
etckeeper[
launchpad[
news_
encoding: 'ascii', fsenc: 'utf8', lang: 'C'
*** 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:/
including this traceback and a description of the problem.
Related branches
- Jelmer Vernooij (community): Approve
-
Diff: 50 lines (+15/-2)4 files modifiedbzrlib/lazy_regex.py (+10/-0)
bzrlib/tests/test_http.py (+1/-1)
bzrlib/transport/http/_pycurl.py (+1/-1)
doc/en/release-notes/bzr-2.7.txt (+3/-0)
summary: |
- breaks with bzr 2.7.12-7 + breaks with python 2.7.12-7 |
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in bzr: | |
status: | Incomplete → Confirmed |
Changed in bzr: | |
milestone: | none → 2.7.1 |
Changed in bzr: | |
status: | In Progress → Fix Released |
summary: |
- breaks with python 2.7.12-7 + "first argument must be string or compiled pattern" with python + 2.7.12-7 |
information type: | Public → Private Security |
Changed in bzr: | |
assignee: | Vincent Ladeuil (vila) → Francisco Windwillow (peedubs76) |
information type: | Private Security → Public |
Changed in bzr: | |
assignee: | Francisco Windwillow (peedubs76) → nobody |
> bzr's monkeypatching of various functions in the 're' module breaks when it's used with python 2.7.12-7 (in Debian):
I can't reproduce :-/
$ bzr --version 4.0-47- generic- x86_64- with-debian- stretch- sid python2. 7/dist- packages/ bzrlib
Bazaar (bzr) 2.8.0dev1
Python interpreter: /usr/bin/python 2.7.12
Python standard library: /usr/lib/python2.7
Platform: Linux-4.
bzrlib: /usr/lib/
Setting LANG and LC_ALL makes no difference here.
Do you have more details around your diagnostic (what is that first argument that is neither a string nor a compiled pattern ?) or better ways to reproduce ?