You are not logged in.

#1 2011-05-11 20:38:32

tgoossens
Member
From: Belgium
Registered: 2011-02-06
Posts: 96
Website

Problem running python script: Totem Clap Plugin

Hi,

First, it's the first time I use python.

I want to do the following on my arch system:

http://mygeekopinions.blogspot.com/2011 … layer.html

But i can't get the install.py running

  File "install.py", line 6, in <module>
    import gtk, gst, subprocess as sub, getpass
ImportError: No module named gtk

"ImportError: No module named gtk" ? i know what it says but.... really? I have gtk installed

Thanks!

Last edited by tgoossens (2011-05-11 20:45:13)


Share and enjoy!

Offline

#2 2011-05-11 21:33:34

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: Problem running python script: Totem Clap Plugin

you need a python gtk module, not the full-on gtk package (although you need that too :-) )

I know for python2 it was pygtk - not sure about python(3)


$ python
Python 3.2 (r32:88445, Apr 15 2011, 11:09:05)
[GCC 4.5.2 20110127 (prerelease)] 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
>>>


$ python2
Python 2.7.1 (r271:86832, Apr 15 2011, 12:09:10)
[GCC 4.5.2 20110127 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>>

Last edited by oliver (2011-05-11 21:34:17)

Offline

#3 2011-05-12 09:39:50

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Problem running python script: Totem Clap Plugin

In the install.py change

#!/usr/bin/python

to

#!/usr/bin/python2

Offline

Board footer

Powered by FluxBB