Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1691064 - gobject-introspection-devel doesn't depend on a specific Python version, but it only works with the Python version it was built with
Summary: gobject-introspection-devel doesn't depend on a specific Python version, but ...
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: gobject-introspection
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
Reported: 2019-03-20 19:00 UTC by Miro Hrončok
Modified: 2019-03-25 09:17 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:

Attachments (Terms of Use)
build.log from copr (deleted)
2019-03-20 19:00 UTC, Miro Hrončok
no flags Details

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/", line 35, in <module>
    from giscanner.ast import Include, Namespace
  File "/usr/lib64/gobject-introspection/giscanner/", line 29, in <module>
    from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
  File "/usr/lib64/gobject-introspection/giscanner/", 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):

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).

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