LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CCSM won't open, pygtk module error. (https://www.linuxquestions.org/questions/slackware-14/ccsm-wont-open-pygtk-module-error-4175447997/)

nando321 01-31-2013 08:54 AM

CCSM won't open, pygtk module error.
 
Greetings folks.
I've recently came back to Slackware, after doing a full install with the DVD and set init to run level 4 (there was one time some months ago that I couldn't do it so I gave up on it).
Well, here it goes, I have installed gslapt and slapt-get and added a repository to the list that contains the Compiz files to install them, so I just selected these couple of packages and installed it following an old thread on how to install Compiz to Slackware and how to solve the errors that might appear when running CCSM but still this one persists:
Quote:

fernando@slackware-desktop:~$ ccsm
Traceback (most recent call last):
File "/usr/bin/ccsm", line 30, in <module>
import pygtk
ImportError: No module named pygtk
I really have no idea on how to solve problems like this one cause I've never had any experience with this so, please any idea will be very welcome and appreciated.
In advance, thanks.

camorri 01-31-2013 09:14 AM

Do you have pygtk installed? Look in /var/log/packages. Here is how...

Quote:

ls /var/log/packages | grep pygtk
-rw-r--r-- 1 root root 34743 May 10 2011 pygtk-2.22.0-x86_64-1
This is from 13.37, 64 bit system. There is a package for 32 bit systems as well. I would also encourage you to install compiz from slackbuilds. Here is the link.

-->http://slackbuilds.org/result/?search=compiz&sv=14.0

Here is the list of packages for ccsm. Not all packages are required.

Quote:

For correct installation, build in this order:
1. compiz-bcop
2. protobuf (optional but recommended)
3. libcompizconfig
4. compizconfig-python
5. compizconfig-backend-kconfig4 (optional)
6. ccsm
7. compiz-plugins-main
8. compiz-plugins-extra (optional)
9. compiz-plugins-unsupported (optional)
10. emerald (optional)
11. emerald-themes (optional)
12. fusion-icon (optional)
You need 1, 2 ( recommended not required ) 3, 4, 5 ( only if you run KDE and want to configure things in KDE ) 6, 7, 8, 9. I like 12 as well ( not required ), you get a desktop icon to access things.

nando321 01-31-2013 09:29 AM

Hi camorri and thank you for the quick reply.

the output for ls /var/log/packages | grep pygtk is:
Quote:

fernando@slackware-desktop:~$ ls /var/log/packages | grep pygtk
pygtk-2.22.0-i486-1
And yes, I have pygtk installed.

By the way, it is not a bad idea at all to install the packages from http://slackbuilds.org. But I might need some little push with an example of how to install one of the packages, for example the first one compiz-bcop, line by line. Could you please tell me?

Thank you again.

n1x4 01-31-2013 09:38 AM

I decided to play around with compiz yesterday on xfce for some unknown reason (still hate it) but anyway I just got lazy and used SBoPKG to install the pkgs listed above, in order, without a problem.

camorri 01-31-2013 09:41 AM

What I would recommend you do is, install sbopkg first. This has nothing to do with compiz. It is a program to make installing things from slackbuilds easier. Once you have that install, spend a little time on that site and learn how to use it. It is not difficult, but you need to know.

Then take one package at a time, in the order they are listed above, and install it with sbopkg. That is the easy way to get things done. When you get a little experience with it, you can make a list of packages, in the correct order, and run sbopkg and compile and install a group in one shot. It works well, once you get a little experience with it.

nando321 01-31-2013 09:47 AM

Ok, n1x4, I have SBoPKG installed now how do I proceed? I still can't get it how to install packages with it...sorry

camorri 01-31-2013 09:58 AM

Open a command prompt, and su to root.

Once you are root, start sbopkg, just type 'sbopkg' not quotes, press enter.

Run sync.

Next run Search, it will give you a input line, you put the package in there.

It should find the package, depending on what you enter, it may list more than one. Pick the one you are after. Click on 'Add To Que.' The que is just a list of packages to download, and install.

Back to Main Menu. Select Que. In the Que menu, Select Process. Follow the instructions there, the package will download, and install.

nando321 01-31-2013 09:58 AM

Now, I've got it! This is what I've done this far:

Quote:

root@slackware-desktop:/home/fernando/Downloads# sbopkg -i protobuf

Queuefile or package protobuf not found - skipping.

OK to continue processing?

camorri 01-31-2013 10:11 AM

Go to the graphical environment. Just enter sbopkg and press enter. Then look for the package.

protobuf is there. Did you run sync first???

nando321 01-31-2013 10:17 AM

Gotcha! Now it is working. Would you suggest to remove pygtk and install it later with sbopkg?

Thanks again

camorri 01-31-2013 10:26 AM

If its installed, its good. It may have been installed for another package. It should not cause a problem.

nando321 01-31-2013 10:28 AM

Good to know.

Now I'm having troubles. Please take a look.

Quote:

Building ccsm

ccsm:
--2013-01-31 12:26:09-- http://releases.compiz-fusion.org/0....m-0.8.4.tar.gz
Resolving releases.compiz-fusion.org (releases.compiz-fusion.org)... failed: Name or service not known.
wget: unable to resolve host address 'releases.compiz-fusion.org'

ccsm:
Would you like to continue processing the rest of the
build queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

Press (Y)es to continue, (N)o to abort, (R)etry to try
to build the package again.
y

+++++++++++++++++++++++++++++++++++++++++++
PACKAGE BUILDING/INSTALLATION SUMMARY LOG
Using the SBo repository for Slackware 13.1
Queue Process: Build and install

ccsm:
Download failed.

Error occurred with build. Please check the log.

camorri 01-31-2013 10:50 AM

Quote:

Using the SBo repository for Slackware 13.1
Are you running 13.1? If not, go to the Untiities menu, then Respritory, and select the correct version.

nando321 01-31-2013 10:58 AM

I've checked that there is no repository for Slackware 14. So, what's up next? Have I installed the wrong sbopkg version? I only found this one!

Sorry to ask all of these questions, this is silly for me too...

nando321 01-31-2013 11:58 AM

Problem solved. I ended up reinstalling the whole system and downloading other version of sbopkg from its website and installing that version with pkgtool. After that I did the whole process of selecting the packages using sbopkg as root and building/installing from there.

Thank you so much for your help folks!

camorri 01-31-2013 12:16 PM

Would you please mark the thread 'Solved' with the Thread Tools at the top of this page. Only the original poster can mark it solved.

linuxbawks 01-22-2018 03:39 AM

pygobject


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