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