Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Third party apps don't work - Mismatched Python versions
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Third party apps don't work - Mismatched Python versions
am4c130d English 16 fabounet [Read]
03 May 2012 à 16:55

am4c130d, Saturday 18 February 2012 à 16:28


Subscription date : 10 October 2011
Messages : 10
Cairo-dock v2.4.0~2 from cairo-dock repositories
LMDE Update pack 3
OpenGL
Compiz
Gnome (albeit totally replaced by Cairo-dock)

I have installed a few third party extras/applets from the web page. They install correctly - as in the icons are on the panel, however, when left clicking on them nothing happens. They appear in the configurations screens and can be configured. The apps in question include Mintmenu (it does run from a shell), Moon and ScreenSaver-Inhibitor.

python -v indicates 2.6.7, which I assume is the default version used if that is relevant.

Everything else appears to work perfectly.

Thanks

Alan

matttbe, Monday 20 February 2012 à 11:39


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this bug report!

Is it possible to launch the dock from a terminal and then (disable and) enable ScreenSaver-Inhibitor (or another third-party applet), click on its icon and post here messages produced in the terminal?
Thank you

Guest, Monday 20 February 2012 à 15:22

Attached is the output. The errors for Moon and Screen-inhibitor appeared before I clicked on either. There was no output when I clicked on either.

Thanks

$ cairo-dock -o


    Cairo-Dock version: 2.4.0~2
    Compiled date: Nov 25 2011 22:09:46
    Running with OpenGL: 1

cairo_dock_get_class: assertion `cClass != NULL' failed
Traceback (most recent call last):
File "./Screensaver_inhibitor", line 22, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet
Traceback (most recent call last):
File "./Moon", line 26, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet

Guest, Monday 20 February 2012 à 19:02

OK, I found the issue.

/usr/bin/python is symlinked to /usr/bin/python2.6; whereas CDApplet is installed in /usr/lib/python2.7/dist-packages/

I changed the /usr/bin/python symlink to point to /usr/bin/python2.7 and restarted the dock. Both now Moon and Screen-inhibitor work as expected.

Its not obvious to me if this can be easily fixed by in the package manager, or if it requires the removal of older versions of Python 2.X to ensure the problem doesn't arise in the future.

Thanks for the pointer to the solution...

fabounet, Tuesday 21 February 2012 à 12:14


Subscription date : 30 November 2007
Messages : 17118
Matttbe, what do you think about this ?
maybe we detect the wrong version ?
maybe we should install our class in all python folders ?

python versions is a real PITA

SQP, Tuesday 21 February 2012 à 17:48


Subscription date : 03 July 2010
Messages : 1081
debian just switched python 2.7 as default in unstable.
It will still take some time, but 2.6 should die

matttbe, Tuesday 21 February 2012 à 21:40


Subscription date : 24 January 2009
Messages : 12573
These python files are installed with a python module (distutils) and it should install it in the right directory and with the default version of python. But I don't know why /usr/bin/python was symlinked to /usr/bin/python2.6 and our files are installed in /usr/lib/python2.7/dist-packages/

am4c130d, Wednesday 22 February 2012 à 03:57


Subscription date : 10 October 2011
Messages : 10
It may be a quirk of LMDE rather than Debian Wheezy/Testing - I use the LMDE repositories. However, I installed this after Update Pack 3 was released, so don't believe I had 2.6 then 2.7 installed. I'll modify the subject to make it clear that the resolution is Python related in case anyone else is caught out - its a trivial fix with the right pointer.

Guest, Friday 20 April 2012 à 21:27

Hello:

I'm new to Linux and cairo-dock! However, I'm running into trouble running third-party apps like Screen-inhibitor as you can see:

~$ cairo-dock -o
warning : (/home/abuild/rpmbuild/BUILD/cairo-dock-2.4.0~2/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:171)
couldn't find an appropriate visual, trying to get one without Stencil buffer
(it may cause some little deterioration in the rendering) ...


Cairo-Dock version: 2.4.0-2
Compiled date: Apr 18 2012 15:59:25
Running with OpenGL: 1

warning : (/home/abuild/rpmbuild/BUILD/cairo-dock-plugins-2.4.0~2/shortcuts/src/applet-drives.c:cd_shortcuts_list_drives:306)
couldn't detect any drives
Traceback (most recent call last):
File "./Screensaver_inhibitor", line 22, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet

/usr/bin/python is symlinked to /usr/bin/python2.7

~$ file /usr/bin/python
/usr/bin/python: symbolic link to `python2.7'

whereas CDApplet is installed in different locations?

~$ find /usr -type f -name CDApplet\* -print
/usr/lib64/pkgconfig/CDApplet.pc
/usr/share/cairo-dock/plug-ins/Dbus/CDApplet.h
/usr/share/vala-0.10/vapi/CDApplet.deps
/usr/share/vala-0.10/vapi/CDApplet.vapi

No error log output is produced when clicking Screensaver_inhibitor
As there is *no* desired effect when left-clicking the icon...

This is 64-bit openSUSE running KDE 4.8.0

Any advice would be very much appreciated.

fabounet, Saturday 21 April 2012 à 03:50


Subscription date : 30 November 2007
Messages : 17118
seems like something like /usr/lib/python2.7/dist-packages/CDApplet.py is missing
the Python interface was probably not installed
did you compile or did you install from a package ?

matttbe, Saturday 21 April 2012 à 14:00


Subscription date : 24 January 2009
Messages : 12573
home/abuild/rpmbuild/BUILD
You can report this bug to the maintainer. And don't forgot to say that the 3.0.0 version is available

Guest, Saturday 21 April 2012 à 17:11

fabounet :
seems like something like /usr/lib/python2.7/dist-packages/CDApplet.py is missing
the Python interface was probably not installed
did you compile or did you install from a package ?


I installed the following packages from an online repository:

libgldi2-2.4.0-18.30.x86_64.rpm
cairo-dock-2.4.0-18.30.x86_64.rpm

and additionally the package cairo-dock-plugins containing references to CDApplet* like:

~$ rpm -qvl cairo-dock-plugins | grep CDApplet
-rwxr-xr-x 1 root root 131932 Dec 16 22:30 /usr/lib64/libCDApplet.so
-rw-r--r-- 1 root root 328 Dec 16 22:28 /usr/lib64/pkgconfigCDApplet.pc
-rw-r--r-- 1 root root 16221 Nov 4 23:01 /usr/share/cairo-dock/plug-ins/Dbus/CDApplet.h
-rw-r--r-- 1 root root 8 Nov 4 23:01 /usr/share/vala-0.10/vapi/CDApplet.deps
-rw-r--r-- 1 root root 6399 Nov 4 23:01 /usr/share/vala-0.10/vapi/CDApplet.vapi

Although the entire dist-packages directory is missing:

$ ls -al /usr/lib/python2.7
total 24
drwxr-xr-x 3 root root 80 Jan 30 15:10 .
drwxr-xr-x 109 root root 23136 Apr 20 16:05 ..
drwxr-xr-x 26 root root 1888 Apr 8 23:39 site-packages

How can I fix it? Which packages in addition should I install?

Thanks

matttbe, Saturday 21 April 2012 à 22:04


Subscription date : 24 January 2009
Messages : 12573
It seems Cairo-Dock packages' maintainers didn't add these files

fabounet, Wednesday 25 April 2012 à 12:56


Subscription date : 30 November 2007
Messages : 17118
compiling the dock from sources is a way to solve you problem, but reporting this to the packagers is another one

Guest, Saturday 28 April 2012 à 21:32

Hello there:

how can I circumvent the following error when running cairo-dock:

~$ cairo-dock -o
warning : (/home/abuild/rpmbuild/BUILD/cairo-dock-2.4.0~2/src/gldit/cairo-dock-opengl.c:cairo_dock_initialize_opengl_backend:171)
couldn't find an appropriate visual, trying to get one without Stencil buffer
(it may cause some little deterioration in the rendering) ...


Cairo-Dock version: 2.4.0-2
Compiled date: Apr 24 2012 12:23:42
Running with OpenGL: 1

Yes, I do get some error in the rendering, especially when selecting a applet with subapplets. BTW, what is a Stencil buffer? I'm curious!

Again, how to circumvent this?

Thanks

matttbe, Tuesday 01 May 2012 à 14:57


Subscription date : 24 January 2009
Messages : 12573
I guess your video card doesn't support very well OpenGL... It's maybe better to use the Cairo backend (cairo-dock -c) and don't hesitate to install the latest stable version

fabounet, Thursday 03 May 2012 à 16:55


Subscription date : 30 November 2007
Messages : 17118
the Stencil Buffer is used to draw the "Curve" view for instance (it allows you to erase a portion of the dock, to make it curve)
the drivers are bad here, so using cairo-dock -c is a valid solution

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Third party apps don't work - Mismatched Python versions
am4c130d English 16 fabounet [Read]
03 May 2012 à 16:55


Glx-Dock / Cairo-Dock List of forums Applets | Applets Third party apps don't work - Mismatched Python versions Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.