Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76601 - [qgis] Removing qtwebkit breaks QGIS Plugins

Attached to Project: Community Packages
Opened by Sylvain POULAIN (kikislater) - Wednesday, 16 November 2022, 15:59 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 17 November 2022, 08:43 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Antonio Rojas (arojas)
Balló György (City-busz)
Bruno Pagani (ArchangeGabriel)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: QtWebKit was removed in Qgis 3.28.0-2 with this commit : https://github.com/archlinux/svntogit-community/commit/783d52696588264257eed9d32c9fd212d0fdeace

It breaks Qgis itself as this file is still present :
```
$ cat /usr/lib/python3.10/site-packages/qgis/PyQt/QtWebKit.py
# -*- coding: utf-8 -*-

"""
***************************************************************************
QtWebKit.py
---------------------
Date : November 2015
Copyright : (C) 2015 by Matthias Kuhn
Email : matthias at opengis dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Matthias Kuhn'
__date__ = 'November 2015'
__copyright__ = '(C) 2015, Matthias Kuhn'

from PyQt5.QtWebKit import *
```



Additional info:
* package version(s): 3.28.0-2
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Install QGIS, try to load some plugins like streetview, openlayers, Qgis2threejs, qgis2web, qgis_resource_sharing, DataPlotly, qtribu

and you will get:
```
ImportError: cannot import name 'QtWebKit' from 'PyQt5' (/usr/lib/python3.10/site-packages/PyQt5/__init__.py)
```
or
```
ModuleNotFoundError: No module named 'PyQt5.QtWebKit'
```
or
```
ImportError: cannot import name 'QtWebKitWidgets' from 'PyQt5' (/usr/lib/python3.10/site-packages/PyQt5/__init__.py)
```

These plugins call /usr/lib/python3.10/site-packages/qgis/PyQt/QtWebKit.py which is already in Qgis package.

python-pyqt5-webkit is now missing from archlinux ...
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 17 November 2022, 08:43 GMT
Reason for closing:  Won't fix
Comment by Antonio Rojas (arojas) - Thursday, 17 November 2022, 07:37 GMT
This is unrelated to the removal of QtWebKit from Qgis itself. Those (third party) plugins depend on the PyQt5 bindings for QtWebKit, which were removed in pyqt5 5.15.7-3. QtWebKit was deprecated over 5 years ago and is unmaintained and insecure, the plugin developers have had plenty of time to port them. In the meantime, you can push a pyqt5-webkit package to AUR shipping the QtWebKit bindings.
Comment by Sylvain POULAIN (kikislater) - Thursday, 17 November 2022, 07:48 GMT
There is no such package at this time ... https://aur.archlinux.org/packages?O=0&K=pyqt5-webkit

Please consider the answer of Nyall Dawson (Qgis developper) from 20 of January 2020
https://github.com/qgis/QGIS/issues/33924
=> "It was later undeprecated by qt. The web engine widgets aren't a full replacement, and qgis requires functionality that isn't available in the web engine versions. This is a won't fix."
Comment by Antonio Rojas (arojas) - Thursday, 17 November 2022, 07:51 GMT
> There is no such package at this time

That's why I said "push"

> "It was later undeprecated by qt"

This is plainly and simply false.
Comment by Antonio Rojas (arojas) - Thursday, 17 November 2022, 08:43 GMT
python-pyqt5-webkit is now available on AUR, you may use that for the time being (although it is strongly advised not to do so)

https://aur.archlinux.org/packages/python-pyqt5-webkit

Note that qt5-webkit itself will be moved to AUR shortly, which will imply much longer compilation times.

Loading...