LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Screenlets on Xfce (GConf python module not found) (https://www.linuxquestions.org/questions/slackware-14/screenlets-on-xfce-gconf-python-module-not-found-870054/)

0zMe 03-21-2011 02:48 PM

Screenlets on Xfce (GConf python module not found)
 
hi,

I'm trying to use screenlets on my slackware on my xfce desktop.
I could start some screenlets without any errors, but I couldn't install some other because of the error mesagge below:

Quote:

GConf python module not found. GConf settings backend is disabled.
Traceback (most recent call last):
File "TerminalScreenlet.py", line 18, in <module>
import gconf
ImportError: No module named gconf
How could I solve this problem?
Which package am I missing? I already installed gnome-python-desktop and gconf from slackbuilds.org

lumak 03-21-2011 05:11 PM

I haven't tried installing screenlets yet... BUT...
If you installed the gnome-python-desktop and gconf AFTER you compiled screenlets, then that's probably your problem. Recompile screenlets and check the output of ./configure --help to see if there is an option to enable gconf.

Additionally, make sure the 'gconf' python module is installed with gnome-python-desktop by viewing the /var/log/packages/gnome-python-desktop-* file.

larryhaja 03-21-2011 08:35 PM

Quote:

Originally Posted by 0zMe (Post 4298376)
How could I solve this problem?
Which package am I missing? I already installed gnome-python-desktop and gconf from slackbuilds.org

Install GConf and then build and install gnome-python. That should satisfy the GConf python dependency.

lumak 03-22-2011 04:39 AM

err yeah, forgot that part, GConf has to come first so that everything else can link against it.

0zMe 03-22-2011 05:57 PM

So I removed both packets via pkgtool and installed first GConf and then gnome-python-desktop like you said, but I still get the same error message :/

lumak 03-22-2011 06:33 PM

"both packages"? All 3 had to be reinstalled. But that's OK, just remove screenlets now and recompile that as well.

Also, before compiling screenlets, in it's source directory run
./configure --help

review all the options and make sure if you have to use "--enable-gconf" or something similar.

Most makefiles/configure scripts will auto determine this if gconf is installed at compile time. However, sometimes it's not.

larryhaja 03-23-2011 08:14 PM

Quote:

Originally Posted by 0zMe (Post 4299764)
So I removed both packets via pkgtool and installed first GConf and then gnome-python-desktop like you said, but I still get the same error message :/

The python bindings for GConf are NOT in gnome-python-desktop. The bindings are in gnome-python. gnome-python uses waf and it just picks up my GConf automatically. All of these are from slackbuilds.org.

0zMe 03-25-2011 07:14 AM

many thanks, I had also to install gnome-python.
Now I was able to launch the screenlets but don't really look good.

http://img852.imageshack.us/img852/6985/ideas013.jpg

I have of course my nvidia drivers installed.

lumak 03-25-2011 04:47 PM

you have to (probably) enable composite features in your window manager or use a composite manager.

0zMe 03-26-2011 12:39 PM

So as you said, I had to enable some features in my window manager.
Many thanks to you guys. Everything solved

lumak 03-30-2011 01:01 AM

For the curious
 
1 Attachment(s)
I wrote a SlackBuild script for screenlets. Please note. This is the frame work only. I now need to make one for the "individual screenlets" which is a big package of generally accepted base widgets... I may just include it under the main package since it's useless without any widgets. Either way, it will be submitted to SlackBuilds once it's fully done.

Core Framework @ Launchpad
Screenlets Package @ Launchpad

Attached script.

Requires: ORBit2, GConf, libtasn1, gnome-keyring, gnome-python, gnome-python-desktop
Recommended: pyxdg

lumak 03-30-2011 10:45 PM

For the extra curious
 
1 Attachment(s)
Here is a more complete script to package the default set of screenlets. Note, some screenlets require other programs or python modules. Run screenlets from a terminal window to see the output of any screenlet that will not launch.

Unfortunately, Slackbuilds submission is closed right now. Wait till 13.37


All times are GMT -5. The time now is 03:12 AM.