gobject-introspection 1.86.0-1

Takashi Yano takashi.yano@nifty.ne.jp
Tue Mar 17 13:04:47 GMT 2026


Hi Jon,

Sorry for the late reply.

On Tue, 10 Mar 2026 22:28:17 +0000
Jon Turney wrote:
> On 13/09/2025 13:51, Takashi Yano via Cygwin-announce wrote:
> > The following packages have been uploaded to the Cygwin distribution:
> > 
> > * gobject-introspection-1.86.0-1
> > * libgirepository1.0_1-1.86.0-1
> > * libgirepository1.0-devel-1.86.0-1
> > * libgirepository1.0-doc-1.86.0-1
> > * girepository-cairo1.0-1.86.0-1
> > * girepository-GIRepository2.0-1.86.0-1
> > * girepository-GLib2.0-1.86.0-1
> > * girepository-x11-1.86.0-1
> > 
> > The goal of the project is to describe GObject APIs and collect
> > them in a uniform, machine readable format.
> 
> Hi Takashi,
> 
> I just tripped over a small problem with gobject-introspection:
> 
> > $ /usr/sbin/alternatives --set python3 /usr/bin/python3.12
> > 
> > $ g-ir-scanner
> > Traceback (most recent call last):
> >   File "/usr/bin/g-ir-scanner", line 133, in <module>
> >     from giscanner.scannermain import scanner_main
> >   File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
> >     from giscanner.ast import Include, Namespace
> >   File "/usr/lib/gobject-introspection/giscanner/ast.py", line 27, in <module>
> >     from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
> >   File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 31, in <module>
> >     from giscanner._giscanner import SourceScanner as CSourceScanner
> > ModuleNotFoundError: No module named 'giscanner._giscanner'
> 
> This fails because the _giscanner module is built for (and linked 
> against) python3.9.

Thanks for pointing this out.
Currently, _giscanner is compiled as
/usr/lib/gobject-introspection/giscanner/_giscanner.cpython-39-x86_64-cygwin.dll
which perhaps requires libpython3.9.dll.

> I don't quite understand why this is happening since we configure with 
> "-Dpython=${PYTHON3}", so I'd expect end up with the full path to 
> specific python version in the shebang line in g-ir-scanner.
> 
> (I think that's what was happening before upstream switched from 
> autotools to meson)
> 
> In any case, this can be fixed in the cygport by using 
> python3_fix_shebang on this script.

Could you please let me know bit more detail how to use
'python3_fix_shebang'?

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin mailing list