Bug 1712275 - Can't install python3-qgis package
Summary: Can't install python3-qgis package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qgis
Version: 30
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Volker Fröhlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1722653
TreeView+ depends on / blocked
 
Reported: 2019-05-21 08:24 UTC by Michal Piotrowski
Modified: 2019-06-24 18:53 UTC (History)
6 users (show)

Fixed In Version: qgis-3.4.6-4.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-12 00:45:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michal Piotrowski 2019-05-21 08:24:33 UTC
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:

Comment 1 Fedora Update System 2019-05-22 20:59:29 UTC
qgis-3.4.6-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d9bf1a4920

Comment 2 Michal Piotrowski 2019-05-23 10:41:02 UTC
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']
----

Comment 3 Fedora Update System 2019-05-23 18:58:45 UTC
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

Comment 4 Alain Zscheile 2019-05-25 18:56:15 UTC
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)

Comment 5 Fedora Update System 2019-06-05 20:57:53 UTC
FEDORA-2019-97510c5665 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-97510c5665

Comment 6 Fedora Update System 2019-06-06 01:00:39 UTC
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

Comment 7 Volker Fröhlich 2019-06-06 07:15:36 UTC
Is the problem resolved when you install python3-qt5-webkit?

Comment 8 Volker Fröhlich 2019-06-07 07:02:03 UTC
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.

Comment 9 Fedora Update System 2019-06-07 15:02:30 UTC
FEDORA-2019-87b90cc69e has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-87b90cc69e

Comment 10 Fedora Update System 2019-06-08 00:51:08 UTC
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

Comment 11 Cedric B 2019-06-11 15:08:10 UTC
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.

Comment 12 Volker Fröhlich 2019-06-11 17:21:14 UTC
Thank you. Can you please add positive Karma to the update mentioned above, so that we can get it to "stable" quicker?

Comment 13 Fedora Update System 2019-06-12 00:45:59 UTC
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.

Comment 14 Alain Zscheile 2019-06-19 19:59:56 UTC
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 .

Comment 15 Alain Zscheile 2019-06-19 20:12:20 UTC
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']
----

Comment 16 Alain Zscheile 2019-06-20 17:01:58 UTC
(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.

Comment 17 Orion Poplawski 2019-06-20 17:07:59 UTC
I believe make is still part of the default buildroot and so an explicit dep is not needed.

Comment 18 Alain Zscheile 2019-06-20 17:55:23 UTC
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?

Comment 19 Orion Poplawski 2019-06-20 19:29:20 UTC
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.

Comment 20 Alain Zscheile 2019-06-20 20:42:10 UTC
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.

Comment 21 Volker Fröhlich 2019-06-21 07:59:52 UTC
Looks like it's python3-qscintilla-qt5 that is missing.

Comment 22 Alain Zscheile 2019-06-21 15:18:42 UTC
tested on a fresh install, works.

Comment 23 Francesco Frassinelli (frafra) 2019-06-24 18:39:00 UTC
I can confirm, python3-qscintilla-qt5 is a missing dependencies; a bug report should be opened.

Comment 24 Francesco Frassinelli (frafra) 2019-06-24 18:53:27 UTC
New bug opened, thanks: https://bugzilla.redhat.com/show_bug.cgi?id=1723542


Note You need to log in before you can comment on or make changes to this bug.