Bug 1691064

Summary: gobject-introspection-devel doesn't depend on a specific Python version, but it only works with the Python version it was built with
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: gobject-introspectionAssignee: Colin Walters <walters>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: dcbw, fmuellner, icq, john.j5live, otaylor, walters, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gobject-introspection-1.60.1-3.fc31 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-27 08:56:26 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:    
Bug Blocks: 1686977    
Attachments:
Description Flags
build.log from copr none

Description Miro Hrončok 2019-03-20 19:00:49 UTC
Created attachment 1546196 [details]
build.log from copr

Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 98, in <module>
    from giscanner.scannermain import scanner_main
  File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
    from giscanner.ast import Include, Namespace
  File "/usr/lib64/gobject-introspection/giscanner/ast.py", line 29, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/usr/lib64/gobject-introspection/giscanner/sourcescanner.py", line 33, in <module>
    from giscanner._giscanner import SourceScanner as CSourceScanner
ModuleNotFoundError: No module named 'giscanner._giscanner'

Version-Release number of selected component (if applicable):
pygobject3-3.32.0-1.fc31

Logs attached.

This is with Python 3.8.0a2.

I don't really understand those magical gi imports, so I don't understand why this happens. pygobject3 blocks a while lot of packages, so this is a severe problem.

Comment 1 Miro Hrončok 2019-03-20 19:52:26 UTC
OK, I have found out this:

The code comes from gobject-introspection-devel, that has no Python dependency on a specific version yet it BRs python3-devel. Let me try to rebuild that one first.

Comment 2 Miro Hrončok 2019-03-25 09:17:25 UTC
Indeed, that was the case.

I think that gobject-introspection-devel should either require python(abi) = %{python3_version}, or if the dependency on python is optional, depend on: (python(abi) = %{python3_version} if python3).

Comment 4 Miro Hrončok 2019-05-20 11:08:48 UTC
Colin? Can you please review and merge my PR?

Comment 5 Miro Hrončok 2019-05-27 08:56:26 UTC
PR was merged and gobject-introspection-1.60.1-3.fc31 was built in rawhide.

Thank you.

Comment 6 Red Hat Bugzilla 2023-09-14 05:25:45 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days