Re: import Gtk issue



The typelib is shipped(it's built to be more precise) with Gtk.
On ArchLinux the typelibs are installed to...

% pacman -Ql gtk3 | grep 'typelib'
gtk3 /usr/lib/girepository-1.0/Gdk-3.0.typelib
gtk3 /usr/lib/girepository-1.0/GdkX11-3.0.typelib
gtk3 /usr/lib/girepository-1.0/Gtk-3.0.typelib

you can find where (if) the gtk typelib are installed and then set the
GI_TYPELIB_PATH enviroment varibable. for example:

export GI_TYPELIB_PATH=/usr/lib/girepository-1.0

and try run your script again.

On Thu, May 29, 2014 at 6:58 AM, Ravish Nayak <ravishanayak gmail com> wrote:
Hi,

I am trying to import Gtk from gi.repository for this I have installed
gobject-introspections v 1.10.0 and pygobject 2.28+ but it's throwing below
error in Red hat 6 by compiling source of above package. However in Ub1204 I
am able to make out there all the required packages are available locally
like gir-1.2-gtk3 and etc. However in Red hat I am trying to install from
the source I did not found Gtk-2.0.typelib/Gtk-3.0.typelib in <custom-path>/
lib/girepository-1.0 path.

But I am able to find in /usr/lib/girepository-1.0/Gtk-3.0.typelib in Ubuntu
machine

python
from gi.repository import Gtk
Cannot find Gtk typelib

Kindly let me know what am doing wrong thing do I need to install GTK+ for
this?

-Ravish

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list




-- 
Victor Aurélio Santos


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