Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#56228 - [sip] Broken QDialogButtonBox

Attached to Project: Arch Linux
Opened by Doug Newgard (Scimmia) - Saturday, 04 November 2017, 00:57 GMT
Last edited by Antonio Rojas (arojas) - Monday, 06 November 2017, 07:28 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Jelle van der Waa (jelly)
Antonio Rojas (arojas)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

After updating to sip/python2-sip 4.19.4-1 (currently in testing), calibre refuses to start. Error is:

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/ui.py", line 239, in initialize
ac.do_genesis()
File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 145, in do_genesis
self.genesis()
File "/usr/lib/calibre/calibre/gui2/actions/polish.py", line 430, in genesis
self.report = Report(self.gui)
File "/usr/lib/calibre/calibre/gui2/actions/polish.py", line 329, in __init__
bb.button(bb.Close).setDefault(True)
AttributeError: 'NoneType' object has no attribute 'setDefault'

Rebuilding against testing does not help. Updating to 3.11.1 does not help.
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 06 November 2017, 07:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  sip 4.19.5
Comment by Doug Newgard (Scimmia) - Saturday, 04 November 2017, 01:32 GMT
Forgot to mention, pyqt5 5.9.1-1 does not help, either.
Comment by Antonio Rojas (arojas) - Saturday, 04 November 2017, 11:39 GMT
Minimal test case:
-------
#!/usr/bin/env python2

import sys
from PyQt5.Qt import QDialogButtonBox,QApplication

app = QApplication(sys.argv)
qdbb = QDialogButtonBox(QDialogButtonBox.Close)
qdbb.button(qdbb.Close).setDefault(True)

Loading...