Re: Bug in gobject-introspection



Le 06/05/2018 à 09:05, Nicola Fontana a écrit :
Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung <arun-g anubis-ca com> scrisse:

Hi,

I have gobject-introspection-1.50.0-1.el7.x86_64 and gobject-
introspection-devel-1.50.0-1.el7.x86_64. I tried to use a program like
"menulibre" and "devedeng" and the developers say there is a bug in
gobject-instrospecition. Thanks for any help!

Hi,

gobject-introspection is Python2 based.

GI works fine with Python 3 here, at version 1.50.0 as well (Debian 9
here).  So I guess it's either that upstream GI doesn't support Python3
and Debian has a patch, or that the OP's version is incorrectly
installing a Python2 GI version in Python3's directories.

Anyway, it looks like the OP's distro is messed up for installing a
Python2 module in Python3's libraries.  Or maybe it's a leftover from a
manual installation?

And for more details on @Nicola's answer: the issue is that in Python
3.x 'print' became a function so has to be used with the syntax
'print(...)', while in Python2 it was a keyword that could be used like
'print ...' (i.e. without parentheses around what to print).  The issue
you see is that use of the Python2 syntax with Python3.

Regards,
Colomban


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]