LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   ImportError: No module named pygtk (http://www.linuxquestions.org/questions/slackware-14/importerror-no-module-named-pygtk-600029/)

orbit 11-16-2007 01:07 AM

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

H_TeXMeX_H 11-16-2007 05:44 AM

pygtk was not installed properly, try installing it again

bgeddy 11-16-2007 06:32 AM

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

orbit 11-25-2007 11:58 PM

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

hoodooman 11-26-2007 10:13 PM

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?

H_TeXMeX_H 11-27-2007 04:16 AM

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

Alien Bob 11-27-2007 06:12 AM

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

orbit 11-27-2007 08:23 PM

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

hoodooman 11-28-2007 04:26 AM

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.

hoodooman 11-28-2007 04:44 AM

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.

The_Beast 05-22-2008 02:02 PM

I have the same problem, I followed your instructions but they didn't work, I even installed python again,and nothing...
any ideas?

adelabarra 06-25-2013 07:50 AM

Quote:

Originally Posted by bgeddy (Post 2960803)
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!!!


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