Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port to qtwebengine needed #33

Open
t0b3 opened this issue May 5, 2022 · 1 comment
Open

port to qtwebengine needed #33

t0b3 opened this issue May 5, 2022 · 1 comment

Comments

@t0b3
Copy link

t0b3 commented May 5, 2022

because qtwebkit is being phased out and not present on my system I get the error message

ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/qgis/utils.py", line 423, in _startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/__init__.py", line 35, in classFactory
    from .sparql_unicorn import SPARQLunicorn
  File "/usr/lib/python3.10/site-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/sparql_unicorn.py", line 49, in 
    from .dialogs.loginwindowdialog import LoginWindowDialog
  File "/usr/lib/python3.10/site-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/sparqlunicorn/dialogs/loginwindowdialog.py", line 3, in 
    from PyQt5.QtWebKitWidgets import QWebView
  File "/usr/lib/python3.10/site-packages/qgis/utils.py", line 888, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets'

thus

from PyQt5.QtWebKitWidgets import QWebView
needs to be ported to PyQt5.QtWebEngineWidgets and QWebEngineView

@situx
Copy link
Collaborator

situx commented May 5, 2022

Hi! Thank you for noticing. I will add a fix to the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants