#1053787 qbrz calls give internal error

Package:
qbrz
Source:
qbrz
Submitter:
Stefano Rosellini
Date:
2023-11-21 15:03:05 UTC
Severity:
normal
#1053787#5
Date:
2023-10-11 08:23:30 UTC
From:
To:
Dear Maintainer,

The package qbzr seems to be broken on Debian 12.

For example using "brz qlog" I get the following error:

<<<
brz: ERROR: TypeError: arguments did not match any overloaded call:
  singleShot(msec: int, slot: PYQT_SLOT): argument 1 has unexpected type
'float'
  singleShot(msec: int, timerType: Qt.TimerType, slot: PYQT_SLOT):
argument 1 has unexpected type 'float'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/plugins/qbrz/lib/util.py",
line 971, in run_in_loading_queue
    f(*args, **kargs)
  File
"/usr/lib/python3/dist-packages/breezy/plugins/qbrz/lib/revtreeview.py",
line 135, in _load_visible_revisions
    load_revisions(revids, model.get_repo(),
  File "/usr/lib/python3/dist-packages/breezy/lazy_import.py", line 153,
in __call__
    return obj(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^
  File
"/usr/lib/python3/dist-packages/breezy/plugins/qbrz/lib/lazycachedrevloader.py",
line 93, in load_revisions
    stop = before_batch_load(repo, batch_revids)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File
"/usr/lib/python3/dist-packages/breezy/plugins/qbrz/lib/revtreeview.py",
line 130, in before_batch_load
    self.delay(0.5)
  File
"/usr/lib/python3/dist-packages/breezy/plugins/qbrz/lib/revtreeview.py",
line 151, in delay
    QtCore.QTimer.singleShot(timeout, null)
TypeError: arguments did not match any overloaded call:
  singleShot(msec: int, slot: PYQT_SLOT): argument 1 has unexpected type
'float'
  singleShot(msec: int, timerType: Qt.TimerType, slot: PYQT_SLOT):
argument 1 has unexpected type 'float'

brz 3.3.2 on python 3.11.2 (Linux-6.1.0-11-amd64-x86_64-with-glibc2.36)
arguments: ['bzr', 'qlog']
plugins: bash_completion[3.3.2], changelog_merge[3.3.2],
    commitfromnews[3.3.2], cvs[3.3.2], darcs[3.3.2], email[3.3.2],
    fastimport[3.3.2], flake8[unknown], fossil[3.3.2], github[3.3.2],
    gitlab[3.3.2], hg[3.3.2], launchpad[3.3.2], mtn[3.3.2],
    netrc_credential_store[3.3.2], news_merge[3.3.2], po_merge[3.3.2],
    propose[3.3.2], pypi[3.3.2], qbrz[0.4.1.dev], quilt[unknown],
    repodebug[3.3.2], rewrite[unknown], stats[3.3.2], svn[3.3.2],
    upload[3.3.2], weave_fmt[3.3.2], webdav[3.3.2], zsh_completion[3.3.2]
encoding: 'utf-8', fsenc: 'utf-8', lang: 'it_IT.UTF-8'

*** Breezy has encountered an internal error.  This probably indicates a
    bug in Breezy.  You can help us fix it by filing a bug report at
https://bugs.launchpad.net/brz/+filebug
    including this traceback and a description of the problem.
QPainter::end: Painter ended with 7 saved states
 >>>

#1053787#10
Date:
2023-11-21 15:01:03 UTC
From:
To:
Just for info.

I uninstalled qbrz package, I downloaded qbrz 0.4.2, I builded it and I
put builded qbrz plugin directory in
/usr/lib/python3/dist-packages/breezy/plugins and now it works.