6

I upgraded Ubuntu from 16.04 to 16.10, and python3 code that was previously working, does not work anymore, i.e.:

$ python3
Python 3.5.2+ (default, Sep 22 2016, 12:18:14) 
[GCC 6.2.0 20160927] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtWebKit import QWebView
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt4.QtWebKit'
>>> 

Package python3-pyqt4 is installed.

Why is this, and what other packages are needed for this to work?

vedar
  • 61
  • sudo apt-get install python3-pyside.qtwebkit – Raphael Oct 22 '16 at 04:41
  • 1
    hm... but I want applications that use PyQt4.QtWebKit to work. Why is this changed in 16.10? – vedar Oct 22 '16 at 04:49
  • python3-pyside.qtwebkit - Qt 4 WebKit module - Python3 bindings is what you wanted right? Did the above package solved your issue? – Raphael Oct 22 '16 at 04:53
  • No. I don't want to use PySide and re-factor all code. I want my Python3 applications that use PyQt4 WebKit, to work as expected. – vedar Oct 22 '16 at 04:59

1 Answers1

3

It looks like the PyQt4.QtWebKit package got removed in Ubuntu 16.10, probably because both PyQt4 and QtWebKit are long unmaintained.

The Compiler
  • 181
  • 3