Bug 1722653

Summary: python3-qgis has missing dependencies
Product: [Fedora] Fedora Reporter: Alain Zscheile <zseri.devel>
Component: qgisAssignee: Volker Fröhlich <volker27>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 30CC: bastian_knight, bruno, cz172638, fraph24, volker27
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: qgis-3.4.6-5.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-30 00:56:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1712275, 1714490    
Bug Blocks:    

Description Alain Zscheile 2019-06-20 21:42:43 UTC
Description of problem:
Can install python3-qgis, but QGIS fails on runtime startup with the following error message:
----
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']
----


Version-Release number of selected component (if applicable):
qgis-3.4.6-4.fc30
python3-qgis-3.4.6-4.fc30.x86_64

How reproducible:
Always (but see Workaround)

Steps to Reproduce:
1. (as root) dnf install python3-qgis
2. (as user) qgis

Actual results:
QGIS shows an error message window

Expected results:
QGIS shouldn't show python errors on startup

Possible Workaround (as root):
dnf install 'dnf-command(builddep)'
dnf builddep qgis

This means that some required dependencies are still missing in the python3-qgis spec.

Comment 1 Alain Zscheile 2019-06-20 21:52:14 UTC
side note about bug 1714490:
python2-sip is pulled in as a weak build-time dependency (when applying workaround),
I'm not sure if this is intended.

Comment 2 Alain Zscheile 2019-06-21 15:19:16 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1712275#c21
"Looks like it's python3-qscintilla-qt5 that is missing."

Comment 3 Fedora Update System 2019-06-21 17:32:34 UTC
FEDORA-2019-3fc1c69d70 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3fc1c69d70

Comment 4 Alain Zscheile 2019-06-21 18:39:25 UTC
That seems to work (I don't have a FAS account, thus can't give positive karma).

(tested via
"cd $(mktemp -d) && koji download-build --arch=x86_64 qgis-3.4.6-5.fc30 && dnf update *"
)

Comment 5 Fedora Update System 2019-06-22 06:04:57 UTC
qgis-3.4.6-5.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-3fc1c69d70

Comment 6 Volker Fröhlich 2019-06-25 20:31:26 UTC
*** Bug 1723542 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2019-06-30 00:56:39 UTC
qgis-3.4.6-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.