0

I tried pyqt 5.5 but it's showing unused import...unable to find keyword qtwebengineview or qt webenginewidgets Thanks..appreciate your time

Akshay14
  • 31
  • 1
  • 4
  • can you show your effort here? – Enamul Hassan Sep 29 '15 at 00:29
  • Show the full error message, and explain what you did to produce it. – ekhumoro Sep 29 '15 at 11:42
  • Yeah i can show..here is the code where i'm importing webenginewidget: import sys from PyQt5 import QtCore, QtWidgets, QtWebKit,QtWebEngineWidget But it shows error usused import: and if i run it give this error: Traceback (most recent call last): File "B:\Eclipse\flivis\main.py", line 8, in from PyQt5 import QtCore, QtWidgets, QtWebKit,QtWebEngineWidget ImportError: cannot import name 'QtWebEngineWidget' – Akshay14 Sep 30 '15 at 04:14
  • thanks for your reply – Akshay14 Sep 30 '15 at 04:16
  • @Akshay14. You're missing an "s": QtWebEngineWidget**s**. – ekhumoro Sep 30 '15 at 17:19
  • @ekhumoro yeah that was my mistake in copy paste.. but even though it's not woking: Traceback (most recent call last): File "B:\Eclipse\flivis\main.py", line 8, in from PyQt5 import QtCore, QtWidgets, QtWebKit,QtWebEngineWidgets ImportError: cannot import name 'QtWebEngineWidgets' there is no packet named qtwebengine or qtwebenginewidget in pyqt 5 folder – Akshay14 Sep 30 '15 at 23:34
  • @Akshay14. It looks like QtWebEngineWidgets is [not available on Windows](http://pyqt.sourceforge.net/Docs/PyQt5/introduction.html#module-PyQt5.QtWebEngineWidgets). – ekhumoro Sep 30 '15 at 23:56
  • Yeah that's the problem....thanks – Akshay14 Oct 02 '15 at 12:37

1 Answers1

0

You can fix the issue now by updating to pyqt5.9,

pip install PyQt5 --update

should do the trick. Once it's installed you'll need to import it with:

from PyQt5.QtWebEngineWidgets import QWebEngineView