On Wed, 19 May 2021 22:09:59 +0100, Jon Turney > On 19/05/2021 20:32, Ken Brown via Cygwin-apps wrote: > > Trying to build harfbuzz, I get the following python failure with > > python-3.8 > > > > Traceback (most recent call last): .... > >   File "/usr/lib/gobject-introspection/giscanner/xmlwriter.py", line > > 46, in > >     from giscanner._giscanner import collect_attributes > > ImportError: dynamic module does not define module export function > > (PyInit__giscanner) > > This a problem with the gobject-introspection package. > > _giscanner.dll is linked with python2, but the shbang names 'python', which is now python3. > > I have been working on rebuilding this package, but not quite there yet. > > You can work around this by fixing the shebang in /usr/bin/g-ir-scanner to explicitly name python3. Here are patches... * 0002-gobject-introspection-1.54.1-4.patch: python3.8 is used explicitly. Shebangs of g-ir-doc-tool and g-ir-scanner are '/usr/bin/env python3.8' _giscanner.dll is linked with libpython3.8.dll * 0001-Fix-a-patch-for-giscanner-shlibs.py-to-pass-a-pep8-c.patch: This has no effect while building. But needed in order to avoid an error in a test cygport gobject-introspection.cygport test And with them, following build and test by cygport has succeeded both in x86_64 and i686, on my local machine. cygport gobject-introspection.cygport download finish all test But on scallywag, only x86_64 build is successful: https://cygwin.com/cgi-bin2/jobs.cgi?id=2841 Regards, Lem