Bug in gobject-introspection

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in gobject-introspection

Arun Gurung
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!


Regards from,
Arun Gurung

_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list

Screenshot from 2018-04-07 06-24-56.png (70K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bug in gobject-introspection

Nicola Fontana-3
Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung <[hidden email]> 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.

Ciao.
--
Nicola
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Bug in gobject-introspection

Colomban Wendling-3
Le 06/05/2018 à 09:05, Nicola Fontana a écrit :

> Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung <[hidden email]> 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
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
Reply | Threaded
Open this post in threaded view
|

Re: Bug in gobject-introspection

Nicola Fontana-3
Il Sun, 6 May 2018 09:47:05 -0300 Colomban Wendling <[hidden email]> scrisse:

> Le 06/05/2018 à 09:05, Nicola Fontana a écrit :
> > Il Sat, 07 Apr 2018 06:25:52 +0200 Arun Gurung <[hidden email]> 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.

Hi Colomban,

I'm pretty sure I met that very same issue the last time I built
gobject-introspection (1.48.something). The official doc [1] says
it is still python2 based, so I supposed things did not change.

Anyway, at least according to meson.build [2], python 3 is now
supported, so I stand corrected.

[1] https://developer.gnome.org/gi/stable/gi-building.html
[2] https://gitlab.gnome.org/GNOME/gobject-introspection/blob/master/meson.build#L15

Ciao.
--
Nicola
_______________________________________________
gtk-devel-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-devel-list