Bzr qdiff crashes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QBzr |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Running bzr qdiff crashes immediately after showing a window:
$ bzr qdiff
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/Users/
return f(*args, **kargs)
File "/Users/
op.run()
File "/usr/local/
self.cleanups, self.func, self, *args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/Users/
self.
File "/Users/
data, di.properties_
File "/Users/
paths)]
File "/Users/
lexer = get_lexer_
File "/usr/local/
res = find_lexer_
File "/usr/local/
for cls in find_plugin_
File "/usr/local/
yield entrypoint.load()
File "/usr/local/
self.
File "/usr/local/
reqs = self.dist.
File "/usr/local/
dm = self._dep_map
File "/usr/local/
self.__dep_map = self._compute_
File "/usr/local/
distvers, mark = self._preparse_
File "/usr/local/
distvers = re.sub(self.EQEQ, r"\1==\2\3", distvers)
File "/usr/local/
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/local/
raise TypeError, "first argument must be string or compiled pattern"
TypeError: first argument must be string or compiled pattern
bzr 2.6.0 on python 2.7.11 (Darwin-
arguments: ['/usr/
plugins: bash_completion
grep[2.6.0], launchpad[2.6.0], netrc_credentia
news_
weave_
encoding: 'utf-8', fsenc: 'utf-8', 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.
$ bzr --version
Bazaar (bzr) 2.6.0
Python interpreter: /usr/local/
Python standard library: /usr/local/
Platform: Darwin-
bzrlib: /usr/local/
Bazaar configuration: /Users/
Bazaar log file: /Users/
Copyright 2005-2012 Canonical Ltd.
http://
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Bazaar is part of the GNU Project to produce a free operating system.
---
qbzr is latest revision:
$ cd ~/.bazaar/
$ bzr revno
1515
Hi, it seems either your version of setuptools is outdated or you need to upgrade your pygments library.
It started to break here:
File "/usr/local/ lib/python2. 7/site- packages/ pygments/ lexers/ __init_ _.py", line 147, in get_lexer_ for_filename
i.e. this is separate pygments library - maybe try `sudo pip install --upgrade pygments`
or try to get fresh version of setuptools: `sudo pip install --upgrade setuptools`.
Error you got is not strictly related to qbzr code itself. If you won't be able to fix this problem, try to uninstall pygments library, and check whether qdiff will work.