Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CCSM displays "ImportError: No module named pygtk"
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Sat Aug 02, 2008 8:31 pm    Post subject: CCSM displays "ImportError: No module named pygtk" Reply with quote

I upgrade my system and afterwords I could not run compiz-fusions ccsm. I kept getting this message:

Traceback (most recent call last):
File "/usr/bin/ccsm", line 23, in <module>
import pygtk
ImportError: No module named pygtk

After running python-updater, it still did not fix the problem.
The problem is python-updater is not working correctly. So here is the fix:

There are 2 files missing: pygtk.pth and pygtk.py in /usr/lib/python2.4/site-packages/.

Instead there is pygtk-2.0.pth and pygtk-2.0.py. They need to renamed to pygtk.pth and pygtk.py.

Then re-install:

pygobject
pycairo
compizconfig-python
ccsm
Back to top
View user's profile Send private message
achaw
l33t
l33t


Joined: 09 Aug 2006
Posts: 689
Location: Argentina

PostPosted: Sun Aug 03, 2008 1:33 am    Post subject: Reply with quote

Did you re-emerge pygtk?

Greetings
_________________
Usuario GNU/Linux #398133
Fluxbox + ROX
NO al canon!
Back to top
View user's profile Send private message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Sun Aug 03, 2008 2:05 am    Post subject: Reply with quote

no, just these.
Back to top
View user's profile Send private message
mortagon
n00b
n00b


Joined: 24 Sep 2007
Posts: 47
Location: Bulgaria

PostPosted: Sun Aug 03, 2008 5:13 am    Post subject: Reply with quote

My /usr/lib/python2.5/site-packages has symbolic links from pygtk.pth -> pygtk.pth-2.0 and pygtk.py -> pygtk.py-2.0. You can do them manually, reemerge of pygtk should be able to recreate them too.
Back to top
View user's profile Send private message
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Mon Aug 04, 2008 7:49 am    Post subject: Reply with quote

no, i did that. the best way to fix this is to follow the link posted above.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum