qcat/qannotate are broken

Bug #489072 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Fix Released
Critical
Gary van der Merwe

Bug Description

qbzr revno 1130.

Run bzr qcat __init__.py in qbzr directory and got traceback from the start:

bzr: ERROR: exceptions.AttributeError: updateRequest

Traceback (most recent call last):
  File "C:\work\Bazaar\plugins\qbzr\lib\trace.py", line 291, in reports_exception_decorate
  File "C:\work\Bazaar\plugins\qbzr\lib\cat.py", line 146, in load
  File "C:\work\Bazaar\plugins\qbzr\lib\cat.py", line 163, in _create_and_show_browser
  File "C:\work\Bazaar\plugins\qbzr\lib\cat.py", line 199, in _create_text_view
  File "C:\work\Bazaar\plugins\qbzr\lib\texteditannotate.py", line 121, in __init__
  File "C:\work\Bazaar\plugins\qbzr\lib\texteditannotate.py", line 85, in __init__
  File "C:\work\Bazaar\plugins\qbzr\lib\texteditannotate.py", line 31, in __init__
AttributeError: updateRequest

bzr 2.0.2 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'qcat', '__init__.py']
encoding: 'cp1251', fsenc: 'mbcs', lang: 'ru'
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.0.1]
  explorer C:\work\Bazaar\plugins\explorer [0.9.1dev]
  fastimport C:\work\Bazaar\plugins\fastimport [0.9.0dev]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.0.2]
  qbzr C:\work\Bazaar\plugins\qbzr [0.17.0dev]
  rebase C:\work\Bazaar\plugins\rebase [0.5.4]
  repoalias C:\work\Bazaar\plugins\repoalias [unknown]
  scmproj C:\work\Bazaar\plugins\scmproj [0.5.0dev]
  svn C:\work\Bazaar\plugins\svn [1.0.2dev]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

bzr.exe @windows, PyQt 4.4.3, Qt 4.4.1, Python 2.5

Tags: qannotate qcat
Revision history for this message
Alexander Belchenko (bialix) wrote :

The same for qannotate, but traceback shown in the console instead of nice GUI window.

Changed in qbzr:
status: New → Confirmed
importance: Undecided → Critical
milestone: none → 0.17
assignee: nobody → Gary van der Merwe (garyvdm)
Revision history for this message
Alexander Belchenko (bialix) wrote :

For those early adopters who run qbzr trunk: if you're experienced this problem, roll back to qbzr revno 1124, until we fix it.

summary: - qcat is broken
+ qcat/qannotate are broken
tags: added: qannotate qcat
Revision history for this message
Alexander Belchenko (bialix) wrote :

Gary, I've started looking into this and part of problem there is because you started using PyQt 4.6 features, while I'm working on PyQt 4.4 and don't plan to upgrade. I've fixed 3 places where you connect handlers to signal in 4.6 way, but now I get another error with qann:

bzr: ERROR: exceptions.AttributeError: 'super' object has no attribute 'paintEvent'

Traceback (most recent call last):
  File "C:\work\Bazaar\plugins\qbzr\lib\texteditannotate.py", line 62, in paintEvent
AttributeError: 'super' object has no attribute 'paintEvent'

bzr 2.0.2 on python 2.5.4 (win32)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'qann', 'texteditannotate.py']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.0.1]
  explorer C:\work\Bazaar\plugins\explorer [0.9.1dev]
  fastimport C:\work\Bazaar\plugins\fastimport [0.9.0dev]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.0.2]
  qbzr C:\work\Bazaar\plugins\qbzr [0.17.0dev]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.4]
  repoalias C:\work\Bazaar\plugins\repoalias [unknown]
  scmproj C:\work\Bazaar\plugins\scmproj [0.5.0dev]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.0]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

And now I'm stuck.

The branch where I've started fixing this bug is https://code.edge.launchpad.net/~qbzr-dev/qbzr/Bug-489072/

Revision history for this message
Gary van der Merwe (garyvdm) wrote : Re: [Bug 489072] Re: qcat/qannotate are broken

On Fri, Nov 27, 2009 at 11:07 AM, Alexander Belchenko <email address hidden> wrote:
> Gary, I've started looking into this and part of problem there is
> because you started using PyQt 4.6 features, while I'm working on PyQt
> 4.4 and don't plan to upgrade. I've fixed 3 places where you connect
> handlers to signal in 4.6 way, but now I get another error with qann:

Thanks for working on this. I'm a bit busy at work.

> bzr: ERROR: exceptions.AttributeError: 'super' object has no attribute
> 'paintEvent'
>
> Traceback (most recent call last):
>  File "C:\work\Bazaar\plugins\qbzr\lib\texteditannotate.py", line 62, in paintEvent
> AttributeError: 'super' object has no attribute 'paintEvent'
>

I've push a fix for this to the above mentioned branch. I forgot that
super does not work with older versions of pyqt.

Revision history for this message
Alexander Belchenko (bialix) wrote :

This is fixed now, other problems reported as other bugs.

Changed in qbzr:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.