public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: Re: g-ir-scanner fails with python-3.8
Date: Wed, 19 May 2021 22:09:59 +0100	[thread overview]
Message-ID: <32e99f35-dff1-5374-6410-2c5b34879bfc@dronecode.org.uk> (raw)
In-Reply-To: <cbb7aaae-4e41-278e-49f9-2bafb77791c5@cornell.edu>

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?

  reply	other threads:[~2021-05-19 21:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19 19:32 Ken Brown
2021-05-19 21:09 ` Jon Turney [this message]
2021-05-22 23:44   ` Lemures Lemniscati
2021-05-23  3:51     ` Marco Atzeri
2021-05-23  4:01       ` Marco Atzeri
2021-05-23  4:45         ` Marco Atzeri
2021-05-23  5:04         ` Lemures Lemniscati
2023-01-12 19:50           ` Jon Turney
2021-05-23  6:00     ` Brian Inglis
2021-05-23 11:50       ` Lemures Lemniscati
2021-05-23 18:17         ` Jon Turney
2021-05-23 18:13     ` Jon Turney
2021-05-19 21:21 ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32e99f35-dff1-5374-6410-2c5b34879bfc@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).