g-ir-scanner fails with python-3.8
Jon Turney
jon.turney@dronecode.org.uk
Wed May 19 21:09:59 GMT 2021
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/bin/g-ir-scanner", line 65, in <module>
> from giscanner.scannermain import scanner_main
> File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line
> 41, in <module>
> from giscanner.dumper import compile_introspection_binary
> File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 35,
> in <module>
> from .gdumpparser import IntrospectionBinary
> File "/usr/lib/gobject-introspection/giscanner/gdumpparser.py", line
> 36, in <module>
> from .transformer import TransformerException
> File "/usr/lib/gobject-introspection/giscanner/transformer.py", line
> 34, in <module>
> from .girparser import GIRParser
> File "/usr/lib/gobject-introspection/giscanner/girparser.py", line
> 31, in <module>
> from .girwriter import COMPATIBLE_GIR_VERSION
> File "/usr/lib/gobject-introspection/giscanner/girwriter.py", line
> 29, in <module>
> from .xmlwriter import XMLWriter
> File "/usr/lib/gobject-introspection/giscanner/xmlwriter.py", line
> 46, in <module>
> 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.
> The log of my last successful build of harfbuzz shows that python-3.6
> was installed. Do any of the python experts out there (Marco? Jon?)
> know what the problem could be?
More information about the Cygwin-apps
mailing list