pyqt / python-qt5

Unofficial PyQt5 via PyPI for Python 2.7 64-bit on Windows
GNU General Public License v3.0
280 stars 77 forks source link

QtWebEngineWidgets not found after update from 5.10.1 #43

Closed further-reading closed 4 years ago

further-reading commented 5 years ago

I just updated my pyqt5 version to 5.11.3 and started getting a module not found error when trying to import QTWebEngine Widgets using from PyQt5.QtWebEngineWidgets import *. Upon reversion to 5.10.1 is started working again. This is on Python 3.6 running on Windows 10.

Was there a change to QtWebEngineWidgets between those versions and if so what should I use to import and use web engine functions now? There's been so many changes to the QTWebEngine that it's hard to track what is relevant to more recent versions.

Schizo commented 4 years ago

I've realized the same issue, at the time of my writing, if you do

pip install python-qt5 you get version python-qt5-0.1.10 which do have QtWebKitWidgets

However, using the git approach mentioned in the docs

pip install git+git://github.com/pyqt/python-qt5.git will leave you with python-qt5-0.3.0

The-Compiler commented 4 years ago

If you're using the official PyQt5 distribution (which you probably should, as it's much more recent than what you get via this unofficial repo), QtWebEngine got split into a separate PyQtWebEngine package.

Schizo commented 4 years ago

Well, if you are using Python 2.7 there is no other option than using this repository.

The-Compiler commented 4 years ago

There is (building PyQt from sources) - however, if you're using Python 2.7, you probably should switch to Python 3 some time soon :wink:

Schizo commented 4 years ago

Building from source is an adventure, we are going to switch to 3 soon but due to legacy reasons, we need to maintain python 2.7.

further-reading commented 4 years ago

Thanks @The-Compiler for expalining! Since this looks to be WAI I'll close the issue.