Should depend on python3-pyqt5 and python3-pyqt5.qtwebkit

Bug #1225418 reported by Dmitry Shachnev
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
retext (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Currently, when python3-pyqt5 is installed but python3-pyqt5.qtwebkit is not, retext fails to start with:

Traceback (most recent call last):
  File "/usr/share/retext/ReText/__init__.py", line 15, in <module>
    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/retext/ReText/__init__.py", line 18, in <module>
    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).

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

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.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Andrew, in the current Qt5 you'll have no icons at all unless you have gnome-icon-theme-full installed.

Another broken thing is support for powerpc and arm64, that should be fixed in Qt 5.2. Anyway, I heard the new Qt should land before 2014.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package retext - 4.1.2-2

---------------
retext (4.1.2-2) unstable; urgency=low

  * Update dependencies for PyQt5, it is now available on most
    architectures (LP: #1225418).

 -- Dmitry Shachnev <email address hidden> Tue, 01 Apr 2014 09:35:50 +0400

Changed in retext (Ubuntu):
status: Triaged → 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.