PyQt6-WebEngine directory issues

Scott Coverley scott_coverley at hotmail.com
Fri Aug 16 18:30:32 BST 2024


Running this on Debian 12 with Python 3.9

from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWidgets import QMainWindow
from PyQt6.QtWebEngineWidgets import QWebEngineView
import sys

class MainWindow(QMainWindow):
    def __init__(self, *args, **kwargs):
        super(MainWindow,self).__init__(*args, **kwargs)
        self.browser = QWebEngineView()
        self.browser.setUrl(QUrl("https://www.google.com"))

        self.setCentralWidget(self.browser)

        self.show()

app = QApplication(sys.argv)
window = MainWindow()

app.exec

Getting following error messages:

Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/serveracct/.pyenv/versions/3.9.0/bin/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/serveracct/.pyenv/versions/3.9.0/lib/python3.9/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/serveracct/.pyenv/versions/3.9.0/lib/python3.9/site-packages/PyQt6/Qt6/libexec/qtwebengine_dictionaries'

I checked the directories on my machine...Couldn't find anything that resembled "qtwebengine_dictionaries'" in ~/.pyenv/versions/3.9.0/bin/

in the case of last two I found the following:
~/.pyenv/versions/3.9.0/lib/python3.9/site-packages/PyQt6/Qt6/libexec/QtWebEngineProcess


Have the following installed:

Package                     Version
--------------------------- -------
pip                         24.2
PyQt6                       6.7.1
PyQt6-Qt6                   6.7.2
PyQt6_sip                   13.8.0
PyQt6-WebEngine             6.7.0
PyQt6-WebEngine-Qt6         6.7.2
PyQt6-WebEngineSubwheel-Qt6 6.7.2
setuptools                  49.2.1


Are others able to get this to work with the same versions I am using?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240816/de1f54d4/attachment.htm>


More information about the PyQt mailing list