Sam Wei
Sam Wei

Reputation: 99

PyQt4: Why I get "ImportError: No module named QtWebkit"?

I have installed Qt 2.4.1, SIP 4.13.3 and PyQt4 4.9.4 on Mac OSX 10.7.5 for Python 3.2.3.

When I tried to from PyQt4.QtWebkit import QWebPage, I got: ImportError: No module named QtWebkit.

But other modules work fine, such as from PyQt4 import QtGui.

I don't know why. What steps am I missing?

Upvotes: 1

Views: 7278

Answers (1)

Achayan
Achayan

Reputation: 5885

Check webkit installed in your system, for finding path

>>> import PyQt4
>>> print PyQt4.__path__
['/usr/lib/python2.7/dist-packages/PyQt4']

check you have QtWebkit there. and check this also

Upvotes: 1

Related Questions