ImportError: cannot import name QtWebKit
ImportError: cannot import name QtWebKit
I am running PyQt4 with python 2.7 on Ubuntu 18.04.
Importing the PyQt4's QtWebKit module into a script returns:
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>> from PyQt4 import QtWebKit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name QtWebKit
>>> quit()
As you can see I do have the PyQt4 library installed, but the QtWebKit module is not found.
Question: I have located and found the qtwebkit.py module in my Downloads/PyQt4/uic/widget-plugins folder, how can I safely transfer the module into the QtPy4 library to be able to use it?
Thanks for the help.
0
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
read askubuntu.com/questions/840318/…
– eyllanesc
Sep 9 '18 at 21:56