LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 01-24-2007, 01:53 PM   #1
peterkarlos
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
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?

Last edited by peterkarlos; 01-24-2007 at 02:10 PM.
 
Old 01-24-2007, 03:56 PM   #2
peterkarlos
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Problem solved.
 
Old 02-13-2007, 01:30 PM   #3
DiBosco
Member
 
Registered: Nov 2001
Location: Manchester, UK
Distribution: Mandriva, Mandriva, Mandriva. (Three different releases depending on the computer)
Posts: 710

Rep: Reputation: 35
Care to tell us how?
 
Old 02-14-2007, 08:27 AM   #4
peterkarlos
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DiBosco
Care to tell us how?
I think the reason was this that i had some packages from cooker and some not.
So I updated other packages to cooker.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
freevo crash ImportError: No module named web.microdom netsurf Linux - Software 0 10-23-2005 05:30 AM
gDesklets - ImportError: No module named gnome.ui raffi Linux - Software 9 10-20-2005 12:48 PM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM
ImportError: No module named gconf linorg Linux - Software 8 02-02-2004 04:37 PM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration