Opened 11 days ago

Closed 10 days ago

#866 closed defect (fixed)

QtWebKit: "ModuleNotFoundError: No module named 'PyQt5.QtWebKit'"

Reported by: andreaerdna Owned by: osgeo4w-dev@…
Priority: critical Component: Package
Version: Keywords:
Cc:

Description (last modified by andreaerdna)

Using QGIS 3.40.3 and QGIS 3.34.15 python3-pyqt5 5.15.11-1

from qgis.PyQt.QtWebKit import QWebSettings
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "C:\OS5C2A~1/apps/qgis/./python\qgis\utils.py", line 1100, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OS5C2A~1/apps/qgis/./python\qgis\PyQt\QtWebKit.py", line 24, in <module>
    from PyQt5.QtWebKit import *
  File "C:\OS5C2A~1/apps/qgis/./python\qgis\utils.py", line 1100, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'PyQt5.QtWebKit'

I guess this will break a lot of plugins using QtWebKit.

Change History (1)

comment:1 by andreaerdna, 10 days ago

Description: modified (diff)
Resolution: fixed
Status: newclosed
Summary: QtWebKit ModuleNotFoundError: No module named 'PyQt5.QtWebKit'QtWebKit: "ModuleNotFoundError: No module named 'PyQt5.QtWebKit'"

It looks like the issue no longer occurs with updated python3-pyqt5 5.15.11-2

Note: See TracTickets for help on using tickets.