LinuxQuestions.org
Visit Jeremy's Blog.
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 11-16-2007, 01:07 AM   #1
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Rep: Reputation: 30
ImportError: No module named pygtk


Hi all,

On Slackware12, I am trying to install DeVeDe (a linux program that converts X video to DVD),
After extracting the .bz2 and running it's ./install.sh, When I try to run devede I am receiving this error:

Quote:
root@Crazed-Weasel:/build/devede-3.3# devede
Traceback (most recent call last):
File "/usr/local/bin/devede", line 25, in <module>
import pygtk # for testing GTK version number
ImportError: No module named pygtk
root@Crazed-Weasel:/build/devede-3.3#
I have installed pykde, pyqt(versions 3 and 4), pygtk, wxpython, pygtkglext, pycairo and python is installed, but nothing seems to fix the problem.


If anyone has any ideas on how to fix this, i will be most grateful

Cheers

Orbit
 
Old 11-16-2007, 05:44 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
pygtk was not installed properly, try installing it again
 
Old 11-16-2007, 06:32 AM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Hi Orbit,


Looks like your install of the PyGTK module has gone wrong, To prove this run python from CLI (just type python into your console) and at the python prompt type "import pygtk". You should get the import error again showing that pygtk is not setup right.

If I were you I would download pygobject, pycairo and pygtk from Slackbuilds.org and download the sources.

First build and install pygobject, then pycairo then pygtk. Pygtk should now be setup and installed.

Try your "python - import pygtk" procedure again to make sure pygtk is installed. Then run your Devede install again.

Good Luck

Last edited by bgeddy; 11-16-2007 at 06:33 AM.
 
1 members found this post helpful.
Old 11-25-2007, 11:58 PM   #4
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hello H_TeXMeX_H and bgeddy,

Thank you both for your replies, it seems that python was broken because they had been compiled/installed in the wrong order.

bgeddy, I followed the install order that you instructed; and it is all working fine now

Once again, thanks very much

Cheers

Orbit
 
Old 11-26-2007, 10:13 PM   #5
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
I managed to install devede and had the same problems.Now its installed and loads properly but when I try to open a multi media file like an .avi or .mpg they are not visible in the load file box???.I think i'll stick with ffmpeg.Does yours work ok?
 
Old 11-27-2007, 04:16 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Yes, ffmpeg works very well from whatever I've done with it. The trick is to compile it right ... try using the one from slackbuilds.org
 
Old 11-27-2007, 06:12 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,379

Rep: Reputation: Disabled
If you want a ffmpeg that has all these codecs built-in as static libraries, instead of depending on them being additionally installed, you can also checkout http://www.slackware.com/~alien/slackbuilds/ffmpeg/
The ffmpeg.SlackBuild there will download all the tarballs needed and build a fully functional ffmpeg. You can also download and install the ready-made package.

Eric
 
Old 11-27-2007, 08:23 PM   #8
orbit
Member
 
Registered: Sep 2006
Location: Australia
Distribution: Slackware
Posts: 176

Original Poster
Rep: Reputation: 30
Hi hoodooman,

Hmm, that's strange?

Yes after the python problem was sorted, DeVeDe has been working brilliantly for me.

Maybe you could try reinstalling DeVeDe?

Sorry I cant offer any other suggestions, but I would really try to get DeVeDe working as it is a very powerful and smooth program.

Good Luck

Cheers

Orbit
 
Old 11-28-2007, 04:26 AM   #9
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
Talking

Thanks all.I liked the ffmpeg tips.I have been using alienbob builds for a time now but never ffmpeg.I use the one that comes in the slackwaremediapack.It does work well but if I ever reinstall Slack (rare):-)I will try his build.And I will persevere with devede just cos its buggin me.
 
Old 11-28-2007, 04:44 AM   #10
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
Well I got all the py stuff from slackpacks and replaced the ones Id used previously from linuxpackages.Devede now works.Happy Happy Joy Joy.Thanks all.
 
Old 05-22-2008, 02:02 PM   #11
The_Beast
LQ Newbie
 
Registered: Mar 2008
Distribution: Archlinux
Posts: 29

Rep: Reputation: 15
I have the same problem, I followed your instructions but they didn't work, I even installed python again,and nothing...
any ideas?
 
Old 06-25-2013, 07:50 AM   #12
adelabarra
Member
 
Registered: May 2008
Location: Argentina
Distribution: Debian, Slackware
Posts: 49

Rep: Reputation: 3
Quote:
Originally Posted by bgeddy View Post
Hi Orbit,
I would download pygobject, pycairo and pygtk from Slackbuilds.org and download the sources.
First build and install pygobject, then pycairo then pygtk. Pygtk should now be setup and installed.
Excellent!!!
 
  


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
ImportError: No module named cairo mattjohnstone22 Linux - Software 1 11-14-2007 06:12 AM
ImportError: No module named SimulationServer nageshbgl Linux - Newbie 1 09-26-2007 04:59 AM
ImportError: No module named gtk peterkarlos Mandriva 3 02-14-2007 09:27 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 02:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 10:58 PM


All times are GMT -5. The time now is 08:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration