Re: GTK+ or PyGobject installation



Hi Christoph Reiter
I checked it and it was installed.

On Fri, Sep 21, 2018 at 6:50 PM Christoph Reiter <reiter christoph gmail com> wrote:
On Fri, Sep 21, 2018 at 9:23 AM, Maziar Parsijani via
python-hackers-list <python-hackers-list gnome org> wrote:
> Hi,
> I use debian 9.3 and PyCharm IDE .The python3-gi labraries and pygobject is
> installed with synaptic now when I am going to import like this :
>
> import gi
> gi.require_version("Gtk", "3.0")
> from gi.repository import Gtk
>
> in the third line there is no Gtk in it I just have
> absolute_import and DynamicImporter.
>
> I use python3.x what should I do now.
>
> python3-gi-cairo ,python3-gi-dbg ,python3-gi are installed too.

https://pygobject.readthedocs.io/en/latest/getting_started.html#ubuntu-getting-started

My guess would be that you need to install gir1.2-gtk-3.0

Attachment: Screenshot from 2018-09-21 20-02-24.png
Description: PNG image



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