PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 13, 2012, 03:51:51 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: ccsm not working after updates <SOLVED>  (Read 929 times)
blackhole
Full Member
***
Offline Offline

Posts: 65



« on: May 04, 2010, 11:52:11 AM »

Hello,

With 2010 KDE4, I use CF for several weeks and find it satisfied my needs.
But after updates ccsm now cannot start and failed with this error :

[blackhole@localhost /]# ccsm
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/usr/bin/ccsm", line 32, in <module>
    import gtk
ImportError: No module named gtk
[blackhole@localhost /]#

The CF desktop effect itself still running without problem, just the setting manager that cannot launch.
I cannot find the same problem by searching the forum, can someone help me out to fix my ccsm back ?  Grin

Thank you in advance.
Logged
menotu
Super Villain
******
Offline Offline

Posts: 11105



« Reply #1 on: May 04, 2010, 12:04:09 PM »

Try re-installing Compiz and also compiz-decorator-gtk
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 2.6.38.8.pae.bfs, & 64bit kernel-2.6.38.8-pclos3-1, KDE 4.6.5; nvidia 290.10, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/32
blackhole
Full Member
***
Offline Offline

Posts: 65



« Reply #2 on: May 04, 2010, 12:29:11 PM »

Thank you menotu.

To be honest, before posting this topics, I already remove all compiz + all deps and installing again without success fixing the ccsm.

I second the steps reinstalling compiz + compiz decorator gtk once again, but still no luck, the ccsm still cannot start with the same error message.

Logged
Mark342
Sr. Member
****
Offline Offline

Posts: 335



« Reply #3 on: May 04, 2010, 08:42:27 PM »

Try reinstalling pygtk.
Test it.
Then reinstall GTK+2.0
Test it.
 Do one then the other so that, if it works, we know which package fixes it.

Further information:
Does simple-ccsm work? (you can find it in the repository, the command to launch it is simple-ccsm)
Logged

Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter
blackhole
Full Member
***
Offline Offline

Posts: 65



« Reply #4 on: May 04, 2010, 09:40:59 PM »

Thank you Mark342,

I follow your suggestion :

Quote
Try reinstalling pygtk.
Test it.
Then reinstall GTK+2.0
Test it.
 Do one then the other so that, if it works, we know which package fixes it.
none of them solve the problem, but after the reinstalling gtk+2.0-2.20.0-1pclos2010, there are more error error occured, the pygobject :
[blackhole@localhost ~]$ ccsm
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/usr/bin/ccsm", line 32, in <module>
    import gtk
  File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
ImportError: No module named gobject
blackhole@localhost ~]$

Quote
Does simple-ccsm work? (you can find it in the repository, the command to launch it is simple-ccsm)
nope, the error message is :
[blackhole@localhost ~]$ simple-ccsm
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/usr/bin/simple-ccsm", line 23, in <module>
    import subprocess
  File "/usr/lib/python2.5/subprocess.py", line 401, in <module>
    import select
ImportError: No module named select
[blackhole@localhost ~

It seems the updates or me  Grin borked the installation. hiks  Cry
but I'm pretty sure even if I'm reinstall from fresh, this problem will keep coming back after update.

How can I resintall or reconfigure the python just like from the fresh installation ?
Where is exactly the $PYTHONHOME point or refering to ?

thank you
Logged
Mark342
Sr. Member
****
Offline Offline

Posts: 335



« Reply #5 on: May 05, 2010, 09:43:09 PM »

Judging from the new output it seems that pygtk and gtk+ aren't the problem, but python can't find its own libraries.
$PYTHONHOME is an environment variable that is sometimes used to tell python where its libraries are.
try:
Code:
export PYTHONHOME=/usr/lib/python2.5/

I am not sure if it will work because I don't have the PYTHONHOME variable set in my install and ccsm still works.

If that doesn't work the you could try reinstalling python.

If none of these work, a reinstall is always an option! Grin
Especially since Tex just released an updated 2010.1 iso with KDE SC 4.4.3
The reinstall should be painless if you have a separate home partition (which is the default setting for the installer).
Logged

Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter
blackhole
Full Member
***
Offline Offline

Posts: 65



« Reply #6 on: May 06, 2010, 12:36:38 AM »

Hi Mark342,

Yippeeee, I found it.  Grin
I build the libcompizconfig src rpm in the hope that can fix the python module settings or at least give me a clue what cause it. The build progress is missing the pyqt4 on python lib folder, and I check /usr/lib/python2.5/site-packages ... yessssssss!!
Apparently on last upgrade there were some strange thing happen to my pyhton installation, all python module on site-package folder was deleted and left only PyKDE4. I don't know why and a little bit puzzled because I haven't do anything from fresh install and just update.
Here is the list of package list deps I reinstalled and now my ccsm runs smooooothly again :

all python-qt4
scons
gnome-python-bonobo
libpixman
libsigegv
ntfsprog
python-gobject
gnome-python-canvas
gnome-python-gnomevfs
pygtk2.0
pygtk2.0-libglade
gnome-python
python-sexy
ntfs-config
python-numeric
python-imaging
python-kde4
python-cairo
ccsm
python-dbus
tkinter
python-ldap
python-nose
python-numpy
python-reportlab
python
python-base
libcompizconfig0
libcompizconfig-python

Quote
If none of these work, a reinstall is always an option! Grin
Especially since Tex just released an updated 2010.1 iso with KDE SC 4.4.3
The reinstall should be painless if you have a separate home partition (which is the default setting for the installer).
Yeah, I already downloaded the 2010.1 and install on another partition, it's working good and no problem whatsoever.
Maybe I'm not the kind of person who always reinstall if dealt with problems.

Thank you menotu and Mark342 for your help.  Grin
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM