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 ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gobject-introspection
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-03-20 19:00 UTC by Miro Hrončok
Modified: 2023-09-14 05:25 UTC (History)
7 users (show)

Fixed In Version: gobject-introspection-1.60.1-3.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-27 08:56:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log from copr (78.60 KB, text/plain)
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/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


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