Startup Error: ImportError: cannot import name 'QtWebKit'

Bug #1760260 reported by mikelococo
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Code of Conduct Signing Assistant
Status tracked in 0.x
0.x
Fix Released
Critical
Marten de Vries

Bug Description

On ubuntu 17.10, after installing code-of-conduct-signing-assistant 0.3-0ubuntu4 via apt, I attempt to run it and get the following startup error:

$ /usr/share/code-of-conduct-signing-assistant/code-of-conduct-signing-assistant
Traceback (most recent call last):
  File "/usr/share/code-of-conduct-signing-assistant/code-of-conduct-signing-assistant", line 32, in <module>
    import codeOfConductSigningAssistant as app
  File "/usr/share/code-of-conduct-signing-assistant/codeOfConductSigningAssistant/codeOfConductSigningAssistant.py", line 30, in <module>
    from PyQt4 import QtCore, QtGui, QtWebKit, QtNetwork
ImportError: cannot import name 'QtWebKit'

Python and python3 are installed:
$ python --version
Python 2.7.14

$ python3 --version
Python 3.6.3

python-qt4 is installed.

Revision history for this message
mikelococo (mikelococo) wrote :

Found this packaging bug: https://bugs.launchpad.net/ubuntu/+source/code-of-conduct-signing-assistant/+bug/1734961

But it's marked as a dupe of https://bugs.launchpad.net/bugs/1674260 which is non-existent and there's no useful discussion in the ticket that does exist.

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Thanks for your bug report. I think the easiest fix would be to switch to PyQt5, which does still ship with QtWebKit. Let me see if I can do so...

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

mikelococo, could you try the latest PPA version? https://code.launchpad.net/~marten-de-vries/+recipe/code-of-conduct-signing-assistant-daily

If it works, I can release a new version which will hopefully in time end up in Ubuntu.

Changed in code-of-conduct-signing-assistant:
assignee: nobody → Marten de Vries (marten-de-vries)
importance: Undecided → Critical
status: New → Fix Committed
Revision history for this message
Marten de Vries (marten-de-vries) wrote :
Revision history for this message
Marten de Vries (marten-de-vries) wrote :

I see my PPA number scheme will give priority to the package already in the repo, so the best solution is probably to just directly install the .deb file Launchpad just built:

https://code.launchpad.net/~marten-de-vries/+archive/ubuntu/code-of-conduct-signing-assistant-daily/+build/14514993/+files/code-of-conduct-signing-assistant_0martendevries+44+3~ubuntu17.10.1_all.deb

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

Tested in a docker container (no graphics). It seems to work, so I'm going ahead and release 0.5

Revision history for this message
Marten de Vries (marten-de-vries) wrote :

& released

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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