LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-11-2012, 05:56 AM   #1
lambo69
Member
 
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68

Rep: Reputation: Disabled
Python/GTK


Hi,

i have a freshly installed Slackware 14.0 and don't know how to get python to know gtk:
Code:
lambo@multivac:~> python
Python 2.7.3 (default, Jul  3 2012, 21:16:07) 
[GCC 4.7.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 reinstalled python/gtk several times.
Code:
root@multivac:~> slackpkg search py

Looking for py in package list. Please wait... DONE

The list below shows all packages with name matching "py".

[uninstalled] - floppy-5.4-i386-3
[ installed ] - python-2.7.3-i486-2
[uninstalled] - kfloppy-4.8.5-i486-1
[uninstalled] - pykde4-4.8.5-i486-1
[uninstalled] - dbus-python-1.1.0-i486-1
[uninstalled] - notify-python-0.1.1-i486-3
[uninstalled] - pycairo-1.8.10-i486-2
[uninstalled] - pycups-1.9.61-i486-1
[uninstalled] - pycurl-7.19.0-i486-2
[uninstalled] - pygobject-2.28.6-i486-2
[ installed ] - pygtk-2.24.0-i486-1
[uninstalled] - pyrex-0.9.9-i486-2
[ installed ] - xdpyinfo-1.3.0-i486-1
[ installed ] - xpyb-1.3.1-i486-2

You can search specific files using "slackpkg file-search file".

root@multivac:~> slackpkg search gtk

Looking for gtk in package list. Please wait... DONE

The list below shows all packages with name matching "gtk".

[uninstalled] - oxygen-gtk2-1.3.0-i486-1
[uninstalled] - gtk+-1.2.10-i486-5
[ installed ] - gtk+2-2.24.10-i486-2
[uninstalled ] - gtk+3-3.4.4-i486-1
[uninstalled] - gtkspell-2.0.16-i486-1
[ installed ] - pygtk-2.24.0-i486-1
[uninstalled] - gtk-xfce-engine-3.0.0-i486-1

You can search specific files using "slackpkg file-search file".
That thread didn't point me to a solution.

Has anyone an idea?

lambo
 
Old 10-11-2012, 06:44 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Just tried it and it loads the module without any complaints. Have you made a full install, as recommended?
 
Old 10-11-2012, 07:00 AM   #3
lambo69
Member
 
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68

Original Poster
Rep: Reputation: Disabled
No, i didn't install full because it runs on an eee901, with hds limited to 4GB an 8GB. That worked all the years, and I would like to keep / on sda (4GB) and /home on sdb (8GB), if possible.

lambo
 
Old 10-11-2012, 07:51 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,212

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
Probably 'pygtk' need 'pygobject' and 'pycairo'

Last edited by gmgf; 10-11-2012 at 07:54 AM.
 
1 members found this post helpful.
Old 10-11-2012, 08:06 AM   #5
lambo69
Member
 
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68

Original Poster
Rep: Reputation: Disabled
That was it! Thank you!

lambo
 
  


Reply



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
python+GTK+Compiz tpariel Linux - Software 1 01-20-2011 03:42 PM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 03:44 AM
Getting GTK to work with python crazyjimbo Programming 4 11-27-2006 12:14 PM
LXer: How to use GTK+ in C and a C# Python comparison LXer Syndicated Linux News 0 01-12-2006 12:31 PM
WineX, python-gnome, and python-gtk DrD Fedora 0 08-03-2004 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration