Description of problem: Can't install python3-qgis package. There are broken dependencies. Version-Release number of selected component (if applicable): 3.4.6-1.fc30 How reproducible: Always Steps to Reproduce: 1. dnf install python3-qgis Actual results: Problem: conflicting requests - nothing provides PyQt5-webkit needed by python3-qgis-3.4.6-1.fc30.i686 - nothing provides PyQt5-webkit needed by python3-qgis-3.4.6-1.fc30.x86_64 - nothing provides PyQt5-webkit needed by python3-qgis-3.4.4-3.fc30.i686 - nothing provides PyQt5-webkit needed by python3-qgis-3.4.4-3.fc30.x86_64 Expected results: Possibility to install python3-qgis. Additional info:
qgis-3.4.6-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d9bf1a4920
Packages install fine, but at the startup there's an error: ---- Couldn't load PyQGIS. Python support will be disabled. Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.7/site-packages/qgis/gui/__init__.py", line 27, in from qgis._gui import * RuntimeError: qgis._gui cannot import type '����' from PyQt5.QtCore Python version: 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] QGIS version: 3.4.6-Madeira 'Madeira', exported Python path: ['/usr/share/qgis/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python37.zip', '/usr/lib64/python3.7', '/usr/lib64/python3.7/lib-dynload', '/usr/lib64/python3.7/site-packages', '/usr/lib/python3.7/site-packages'] ---- And after closing this one next error: ---- An error occurred during execution of following code: qgis.utils.uninstallErrorHook() Traceback (most recent call last): File "", line 1, in NameError: name 'qgis' is not defined Python version: 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] QGIS version: 3.4.6-Madeira 'Madeira', exported Python path: ['/usr/share/qgis/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python37.zip', '/usr/lib64/python3.7', '/usr/lib64/python3.7/lib-dynload', '/usr/lib64/python3.7/site-packages', '/usr/lib/python3.7/site-packages'] ----
qgis-3.4.6-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-d9bf1a4920
Is it possible that simply the python3-qgis package depends on the wrong Qt5-webkit package? Can someone check if this bug is fixed if "PyQt5-webkit" as a dependency of "python3-qgis" is replaced with "python3-qt5-webkit"? (the naming scheme probably changed) (s/PyQt5-webkit/python3-qt5-webkit/ in package "python3-qgis", "Required:" line)
FEDORA-2019-97510c5665 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-97510c5665
qgis-3.4.6-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-97510c5665
Is the problem resolved when you install python3-qt5-webkit?
I hadn't noticed Erik's comment when I wrote my previous comment. Since we both came to that conclusion independently, I'll give it a go. PyQt/PyQt5/QtWebKit.py has from PyQt5.QtWebKit import *. At least in Fedora 29, this only succeeds when the aforementioned package is installed.
FEDORA-2019-87b90cc69e has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-87b90cc69e
qgis-3.4.6-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-87b90cc69e
This version worked for me. The errors went away and I was able to load qgis with python support and I was able to load and install qgis plugins.
Thank you. Can you please add positive Karma to the update mentioned above, so that we can get it to "stable" quicker?
qgis-3.4.6-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
ok, qgis-3.4.6-4.fc30 does show a gui (doesn't immediately crash in startup), but the original error is still there (errors about webkit are gone). python3-qgis-3.4.6-4.fc30.x86_64 and python3-qt5-webkit-5.11.3-6.fc30.x86_64 are installed upon a fresh fedora installation. It is reproducable from the python3.7 shell: Python 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt5.QtCore >>> import qgis.PyQt.QtCore >>> import qgis._gui Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: qgis._gui cannot import type '����' from PyQt5.QtCore There seems to be an error in /usr/lib64/python3.7/site-packages/qgis/_gui.so .
another python error on startup (althrough probably unrelated or only related to failed initialization of PyQGIS): ---- An error occurred during execution of following code: qgis.utils.uninstallErrorHook() Traceback (most recent call last): File "", line 1, in NameError: name 'qgis' is not defined Python version: 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] QGIS version: 3.4.6-Madeira 'Madeira', exported Python path: ['/usr/share/qgis/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python', '/home/user/.local/share/QGIS/QGIS3/profiles/default/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python37.zip', '/usr/lib64/python3.7', '/usr/lib64/python3.7/lib-dynload', '/usr/lib64/python3.7/site-packages', '/usr/lib/python3.7/site-packages'] ----
(back to the original topic of this issue: broken dependencies) I tried to compile the source code of qgis using rpmbuild and noticed that the build dependency on "make" is missing. e.g. "BuildRequires: make" is missing from qgis.spec. "dnf builddep qgis" didn't pull in make, it was necessary to run "dnf install make", otherwise rpmbuild failed.
I believe make is still part of the default buildroot and so an explicit dep is not needed.
ok, I was now able to build it using rpmbuild and the python error was gone. I don't know why the binary package in the repo was broken (at least yesterday and the week before). Today I did an "dnf update" again, the error is now gone. OT: Is there a command to install the full default buildroot?
dnf install @buildsys-build you might want to take a look at "mock", which is what is used to build packages in a chrooted environment.
I reinstalled fedora into a chroot and python3-qgis was broken again. But it works after installing the qgis build deps. e.g. The problem disappears after "dnf builddep qgis". This means that some required dependencies are still missing in the python3-qgis spec.
Looks like it's python3-qscintilla-qt5 that is missing.
tested on a fresh install, works.
I can confirm, python3-qscintilla-qt5 is a missing dependencies; a bug report should be opened.
New bug opened, thanks: https://bugzilla.redhat.com/show_bug.cgi?id=1723542