qrun --execute crashes with AttributeError
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
QBzr | Status tracked in Trunk | |||||
0.18 |
Fix Released
|
High
|
Simon Kersey | |||
0.19 |
Fix Released
|
High
|
Simon Kersey | |||
Trunk |
Fix Released
|
High
|
Simon Kersey |
Bug Description
The qrun command with '--execute' option crashes with AttributeError. Can reproduce on the following platforms/versions:
- python 2.6.5, bzr 2.1.1, qbzr 0.18.6, qt 4.6.2, pyqt 4.7.2 on GNU/Linux
- python 2.5.4, bzr 2.1.1, qbzr 0.18.4, qt 4.4.1 (all bundled in stable installer) on Windows
Full traceback (from GNU/Linux as it seems to contain more useful info). Also tested with no additional plugins.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
ret_code = self._qbzr_
File "/usr/lib/
execute=
File "/usr/lib/
self.
AttributeError: 'QBzrRunDialog' object has no attribute 'init_button_
bzr 2.1.1 on python 2.6.5 (linux2)
arguments: ['/usr/bin/bzr', 'qrun', '--ui-mode', '--execute', '--', 'status']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
bookmarks /home/gliwm/
bzrtools /usr/lib/
etckeeper /usr/lib/
explorer /home/gliwm/
fastimport /usr/lib/
git /usr/lib/
gnulog /home/gliwm/
hg /home/gliwm/
hgs /home/gliwm/
launchpad /usr/lib/
loom /usr/lib/
netrc_
news_merge /usr/lib/
pager /home/gliwm/
qbzr /usr/lib/
rebase /usr/lib/
repoalias /home/gliwm/
search /usr/lib/
stats /usr/lib/
svn /usr/lib/
upload /usr/lib/
Same thing (qrun --execute) with bzr trunk and qbzr trunk (and qt 4.6.2, pyqt 4.7.3) (on GNU/Linux) throws a different AttributeError:
Traceback (most recent call last):
File "/home/
ret_code = self._qbzr_
File "/home/
execute=
File "/home/
self.
AttributeError: 'Ui_RunDialog' object has no attribute 'frame'
BTW, without the '--execute' option qrun works OK (both in stable and trunk).
Related branches
- Alexander Belchenko: Approve
-
Diff: 152 lines (+38/-28)3 files modifiedNEWS.txt (+2/-0)
lib/run.py (+19/-12)
lib/subprocess.py (+17/-16)
I've fixed the 'frame' issue in trunk. Now both trunk an 0.18 give the error : status'
AttributeError: 'QBzrRunDialog' object has no attribute 'init_button_
There is no oblivious replacement to init_button_status, and I'm not sure what it did.