0

I am trying a simple webenginewidget on PyQt6, however it gave me this error while importing the widget. I remember trying this a while ago and it works. I am using venv as my environtment.

# mapview.py
from PyQt6.QtWidgets import QWidget
from PyQt6.QtWebEngineWidgets import QWebEngineView
from PyQt6.QtCore import QUrl

class mapView(QWidget):
    def __init__(self) -> None:
        super().__init__()
        self.webview = QWebEngineView()
        self.webview.load(QUrl("http://www.google.com"))

if __name__ == "__main__":
    from PyQt6.QtWidgets import QApplication
    import sys
    app = QApplication(sys.argv)
    w = mapView()
    w.show()
    sys.exit(app.exec())

the error log:

    from PyQt6.QtWebEngineWidgets import QWebEngineView
ImportError: /lib/x86_64-linux-gnu/libgssapi_krb5.so.2: undefined symbol: k5_sname_compare, version krb5_3_MIT

Adriaan
  • 17,741
  • 7
  • 42
  • 75
BlueBeret
  • 474
  • 3
  • 23
  • Please do not add answers to the question body itself. Instead, you should add it as an answer. [Answering your own question is allowed and even encouraged](https://stackoverflow.com/help/self-answer). In this case though, the answer is linked to at the top of the page via the "duplicate" link. That way, information is centralised an more easy to find. – Adriaan Jan 18 '23 at 10:53

0 Answers0