LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (http://www.linuxquestions.org/questions/mandriva-30/)
-   -   ImportError: No module named gtk (http://www.linuxquestions.org/questions/mandriva-30/importerror-no-module-named-gtk-522450/)

peterkarlos 01-24-2007 02:53 PM

ImportError: No module named gtk
 
I can not import gtk

Code:

[peter@localhost ~]$ python2.5
Python 2.5 (r25:51908, Dec 11 2006, 18:44:13)
[GCC 4.1.2 20061110 (prerelease) (4.1.2-0.20061110.1mdv2007.1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named gtk

I install
Code:

[root@localhost lib]# rpm -qa | grep gtk
libgtk+1.2-1.2.10-45mdv2007.0
pygtk2.0-libglade-2.10.3-3mdv2007.1
libgtk+2.0_0-2.10.3-4mdv2007.0
libgtk+-x11-2.0_0-2.10.3-4mdv2007.0
gtkdialogs-2.2-1mdv2007.0
libgtk-linux-fb-2.0_0-2.4.14-6mdk
gtk+2.0-2.10.3-4mdv2007.0
libgtkhtml2_0-2.11.0-2mdv2007.0
pygtk2.0-2.10.3-3mdv2007.1

and
Code:

[root@localhost lib]# rpm -qa | grep pygtk
pygtk2.0-libglade-2.10.3-3mdv2007.1
pygtk2.0-2.10.3-3mdv2007.1

I have Mandriva 2007

Should I insatll something more?

peterkarlos 01-24-2007 04:56 PM

Problem solved.

DiBosco 02-13-2007 02:30 PM

Care to tell us how? :confused:

peterkarlos 02-14-2007 09:27 AM

Quote:

Originally Posted by DiBosco
Care to tell us how? :confused:

I think the reason was this that i had some packages from cooker and some not.
So I updated other packages to cooker.


All times are GMT -5. The time now is 12:48 PM.