I have installed PyQt5 for Python3. However while I can import various modules into Python I am finding that none of the WebEngine modules import (WebEngine, WebEngineWidgets, WebEngineCore). They dont appear to be there.

from PyQt5 import QtCore, QtGui, QtWidgets, QtWebEngineWidgets, uic

class Ui_Form(object):
    def setupUi(self, Form):
        Form.resize(1366, 768)
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.widget = QtWebEngineWidgets.QWebEngineView(Form)


    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))

if __name__ == "__main__":
    import os, sys
    app = QtWidgets.QApplication(sys.argv)
    ui_path = os.path.join(os.path.dirname(__file__), "ui/browser.ui")
    window = uic.loadUi(ui_path)

Is there no support for the WebEngine modules of PyQt on the Raspberry Pi and if so then any other alternatives to solve this issue?

  • You need to clarify what you mean by "doesn't work", otherwise this kind of question just reeks of the XY problem. – goldilocks Feb 22 '18 at 14:54
  • Clarified as "do not import". Please remove from hold. – Lee Melbourne Feb 22 '18 at 20:59
  • 1
    May I ask: wouldn't it be useful for others and increase your chance for a helpful answer if you post in detail what you have tried (your code, your command line input etc.) and the original error messages? – Fabian Feb 22 '18 at 21:30
  • Examples added as requested. Though this is not a case of needing code assistance. Its a question of pyqt capabilities versus what is known to be available in qt. – Lee Melbourne Feb 23 '18 at 4:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.