Should depend on python3-pyqt5 and python3-pyqt5.qtwebkit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
retext (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently, when python3-pyqt5 is installed but python3-
Traceback (most recent call last):
File "/usr/share/
from PyQt5 import QtCore, QtPrintSupport, QtGui, QtWidgets, QtWebKit, QtWebKitWidgets
ImportError: No module named 'PyQt5.QtWebKit'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/retext", line 23, in <module>
from ReText import QtCore, QtWidgets, QtWebKit, datadirs, globalSettings
File "/usr/share/
from PyQt4 import QtCore, QtGui, QtWebKit
RuntimeError: the PyQt4.QtCore and PyQt5.QtCore modules both wrap the QObject class
Upstream switched to PyQt5 by default (with fallback to PyQt4), so we should apply this change here as well. This is currently blocked by Qt 5.1 update (as theming support is broken in Qt 5.0).
Dmitry,
I wonder if this should happen regardless of the broken theming support in Qt 5.0. I just hit this on 13.04; I guess I had uninstalled whatever had pulled in python3- pyqt5.qtwebkit for me in the past. It makes retext completely unusable for the normal user who might run into it. I'd rather have a working retext with icons that don't follow my theme than a broken retext.