Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Problems with Cairo Dock applets - Gmail and Xchat
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] Problems with Cairo Dock applets - Gmail and Xchat
Page : 1 2
Guest English 38 kevdog [Read]
29 March 2013 à 13:13

Guest, Wednesday 20 March 2013 à 17:11

I'm currently running 3.7.10-1-ARCH and have python version 3.3.0 installed at /usr/bin/python. I've attempted adding the Gmail and Xchat extensions into the dock -- but they don't work. Because I'm running arch I did manually install the phython2 versions of the file as instructed on the extensions page (maybe this is the problem since I'm running python3??).

Manually trying to run the Gmail applet from the /config/cairo-dock/third-party directory I get this:
[kevdog@orphan Gmail]$ python Gmail.py
File "Gmail.py", line 277
except IOError, error:
^
SyntaxError: invalid syntax

If I try to run it with python2 I get:
[kevdog@orphan Gmail]$ python2 Gmail.py
Traceback (most recent call last):
File "Gmail.py", line 18, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet

With xchat I get the following:
[kevdog@orphan Xchat]$ python Xchat
File "Xchat", line 60
print "on_name_owner_changed:",connection_name
^
SyntaxError: invalid syntax

Can you help me with these errors?

fabounet, Wednesday 20 March 2013 à 19:05


Subscription date : 30 November 2007
Messages : 17118
Hi,
CDApplet is not installed for python2, that's why you get the error when using python2

about python3, we have ported the applets to python3, so now they should work with both. It's quite recent, so they are not updated on the server yet.
we'll do it before the 3.2 release, however you can already get them from Launchpad:
bzr co --lightweight lp:cairo-dock-plug-ins-extras

you will get all applets, then simply copy the applets you need in ~/.config/cairo-dock/third-party (you can overwrite what's in the folder).

please make a feedback to know if it works correctly with python3

matttbe, Thursday 21 March 2013 à 01:34


Subscription date : 24 January 2009
Messages : 12573
about python3, we have ported the applets to python3, so now they should work with both.
Currently, only a few of them will work with python 3 but not all of them (e.g. GMail applet has already been ported to python3 but some applets need a bit more work and I'm really not an expert of Python )

If you want to test, simply install the development version (cairo-dock-bzr with its plugins). Before compiling the plugins, simply replace 'python2' by 'python3' (or 'python' if 'python3' doesn't exist) in the main CMakeLists.txt file:
cd cairo-dock-plug-ins
sed -i 's/python2/python3/g' CMakeLists.txt
(then you can test our GMail applet from bzr (lp:cairo-dock-plug-ins-extras)

kevdog, Thursday 21 March 2013 à 05:19


Subscription date : 20 March 2013
Messages : 20
Excuse me -- I wrote the first post

Using yaourt - I did install the cairo-dock-plug-ins-bzr from the AUR (hopefully this wasn't the problem)

I've looked at the PKGBUILD file, and there really isn't too much too it.

I have files in /usr/share/cairo-dock/third-party and within ~/.config/cairo-dock/third-party.

I don't see a CmakeLists.txt file anywhere -- either in the PKGBUILD or within the directories listed.
I think I'm missing something here!!

Needless to say I just checked out the Bazaar branch as stated in post#2
No CMakeLists.txt in this repository

python on my system if python3
I tried running
python Gmail.py
and got the following:
python Gmail.py
Traceback (most recent call last):
File "Gmail.py", line 18, in <module>
from CDApplet import CDApplet, _
ImportError: No module named 'CDApplet'

Wait -- I'm back to where I started I think?

fabounet, Thursday 21 March 2013 à 09:25


Subscription date : 30 November 2007
Messages : 17118
you have to install the latest version of the applet first, (see my previous post)

if it still doesn't work, you can edit the file of the applet, and replace "#!/usr/bin/env python" by "#!/usr/bin/env python2", and copy /usr/lib/python3.3/dist-packages/CDApplet.py in /usr/lib/python2.7/dist-packages/CDApplet.py

matttbe, Thursday 21 March 2013 à 12:01


Subscription date : 24 January 2009
Messages : 12573
and copy /usr/lib/python3.3/dist-packages/CDApplet.py in /usr/lib/python2.7/dist-packages/CDApplet.py
It's the opposite
sudo cp /usr/lib/python2.7/dist-packages/CDApplet.py /usr/lib/python3/dist-packages/CDApplet.py

kevdog, Friday 22 March 2013 à 03:00


Subscription date : 20 March 2013
Messages : 20
Hmmm -- strange things afoot here -- I don't have a dist-packages directory in either my python2 or python3.3 directories, so I definitely don't have the CDApplet.py script. I've got to figure out why...

I installed on arch from the aur
packer -S cairo-dock-plugins-bzr

but this is what I get after installation:
$locate CDApplet
/usr/lib/libCDApplet.so
/usr/lib/pkgconfig/CDApplet.pc
/usr/lib/ruby/1.9.1/CDApplet.rb
/usr/share/cairo-dock/plug-ins/Dbus/CDApplet.h
/usr/share/vala/vapi/CDApplet.deps
/usr/share/vala/vapi/CDApplet.vapi

I'm not seeing anything with python

Perhaps this is a clue: (snippet):
running install
running build
running build_py
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

Further information:
-- * With DBusMenu support
running cd "/tmp/packerbuild-1000/cairo-dock-plugins-bzr/cairo-dock-plugins-bzr/src/cairo-dock-plug-ins-build/Dbus/interfaces/python" && /usr/bin/python2 setup.py -q build 2>&1
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found


There are no packages libido3 or indicator for arch!! I'm very confused.

fabounet, Friday 22 March 2013 à 09:12


Subscription date : 30 November 2007
Messages : 17118
ok, so the python interface is not installed
how do you install the dock and what's its version ? you might want to install it from the sources: http://glx-dock.org/ww_page.php?p=By%20compiling&lang=en

matttbe, Friday 22 March 2013 à 12:08


Subscription date : 24 January 2009
Messages : 12573
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found
file CDApplet.py (for module CDApplet) not found
file CairoDock.py (for module CairoDock) not found
Yes, I'm fixing this bug right now
Should be ok in a few minutes!

EDIT: ok: now you can simply compile and install the latest version of the dock (core & plugins) and GMail applet (from the BZR repos!)

kevdog, Saturday 23 March 2013 à 03:53


Subscription date : 20 March 2013
Messages : 20
The only issue with compiling from source in Arch is that there are no:
indicator(3)-0.4 libido(3)-0.1
packages for arch!! These are for unity.

kevdog, Saturday 23 March 2013 à 04:20


Subscription date : 20 March 2013
Messages : 20
I'm I just totally stupid

I just reinstalled cairo-dock-bzr, cairo-dock-plugins-bzr, and cairo-dock-plug-ins-extras-bzr from the AUR, I fail to see any difference with the changes you pushed.

$ /usr/bin/python2 Gmail.py
Traceback (most recent call last):
File "Gmail.py", line 18, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet

Am I just totally falling off the apple wagon here? (I'm in the /usr/share/cairo-dock/third-party directory)

Another experiment
I just downloaded all the sources directly from bzr (not using the AUR). I was able to build and install the cairo-dock. With the cairo-dock-plugins bzr project however, the make process worked. However when I tried to install the package:
$ sudo make install
..
..
..
CMake Error at Dbus/data/cmake_install.cmake:59 (FILE):
file INSTALL cannot find
"/home/kevdog/src/cairo-dock-plug-ins/build/Dbus/data/cairo-dock-launcher-API-daemon.py".
Call Stack (most recent call first):
Dbus/cmake_install.cmake:38 (INCLUDE)
cmake_install.cmake:45 (INCLUDE)

fabounet, Saturday 23 March 2013 à 12:02


Subscription date : 30 November 2007
Messages : 17118
you're not stupid, it's me
there was an error in the makefiles, it should be ok now

kevdog, Sunday 24 March 2013 à 15:29


Subscription date : 20 March 2013
Messages : 20
Thanks for updating the packages -- many applets do work (since I'm Running Arch with python3). I haven't tried them all.

I'm still having problems with the gmail applet however. I started the cairo-dock from the command line, and here is what I'm getting on startup:

$ cairo-dock -c


    Cairo-Dock version : 3.2.0
    Compiled date : Mar 22 2013 23:02:55
    Built with GTK : 3.6
    Running with OpenGL: 0

sh: line 1: 1482 Killed ./"Xchat" 1 "/org/cairodock/CairoDock/Xchat" "/home/kevdog/.config/cairo-dock/current_theme/plug-ins/Xchat/Xchat.conf" "/home/kevdog/.config/cairo-dock" cairo-dock 1470
sh: line 1: 1490 Killed ./"Pidgin" 2 "/org/cairodock/CairoDock/Pidgin" "/home/kevdog/.config/cairo-dock/current_theme/plug-ins/Pidgin/Pidgin.conf" "/home/kevdog/.config/cairo-dock" cairo-dock 1470
sh: line 1: 1505 Killed ./"CpuWatcher" 4 "/org/cairodock/CairoDock/CpuWatcher" "/home/kevdog/.config/cairo-dock/current_theme/plug-ins/CpuWatcher/CpuWatcher.conf" "/home/kevdog/.config/cairo-dock" cairo-dock 1470
warning : (/home/kevdog/src/cairo-dock-plug-ins/Dbus/src/applet-dbus.c:cd_dbus_register_module_in_dir:180)
file /home/kevdog/.config/cairo-dock/third-party/demos/auto-load.conf should not be here
warning : (/home/kevdog/src/cairo-dock-plug-ins/Dbus/src/applet-dbus.c:cd_dbus_register_module_in_dir:180)
file /home/kevdog/.config/cairo-dock/third-party/FTP/auto-load.conf should not be here
Traceback (most recent call last):
File "/usr/lib/cairo-dock/cairo-dock-launcher-API-daemon", line 23, in <module>
import glib
ImportError: No module named 'glib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/cairo-dock/cairo-dock-launcher-API-daemon", line 27, in <module>
from gi.repository import GLib as glib
ImportError: No module named 'gi'
which: no xchat-gnome in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/core_perl:/usr/lib/qt4/bin)
>>> path to xchat-gnome :
>>> class of the appli : xchat
File "./Gmail", line 276
except IOError, error:
^
SyntaxError: invalid syntax
cairo_dock_create_surface_from_image_simple: assertion `cImageFile != NULL' failed
SET default image: /usr/share/cairo-dock/plug-ins/Recent-Events/icon.svg
CpuWatcher : Config retrieved + Timer started
CpuWatcher has been started.
sh: ./CairoBzr: No such file or directory
on_name_owner_changed:
on_name_owner_changed: :1.55
_cd_find_volume_name_from_drive_name: assertion `pDrive != NULL' failed
cairo_dock_draw_subdock_content_on_icon (Terminal)
drawing OK
cairo_dock_draw_subdock_content_on_icon (mnt_sshfs)
drawing OK
cairo_dock_draw_subdock_content_on_icon (EOLUser)
drawing OK
Number of cores : 2
warning : (/home/kevdog/src/cairo-dock-core/src/gldit/cairo-dock-launcher-manager.c:cairo_dock_launch_command_sync_with_stderr:448)
which: no kwin in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/core_perl:/usr/lib/qt4/bin)
which: no xfwm4 in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/usr/bin/core_perl:/usr/lib/qt4/bin)

kevdog, Sunday 24 March 2013 à 15:39


Subscription date : 20 March 2013
Messages : 20
I'm also noticing this when trying to add an icon or launcher into the dock (For example firefox -- I've started firefox -- the icon appears in the dock, I right click and select Make it a Launcher):
cairo_dock_register_class_full: assertion `cDesktopFile != NULL || cClassName != NULL' failed

fabounet, Sunday 24 March 2013 à 17:00


Subscription date : 30 November 2007
Messages : 17118
Hi,
it seems the applet's version is incorrect, I don't have this at line 256
so I recommend to do:
rm -rf ~/.config/cairo-dock/third-party/*, then re-drop the applets on the dock from http://www.glx-dock.org/mc_album.php?a=10 (the server is now up-to-date with the latest version, so you don't need to go through bzr)

however, you'll probably get the same error as with cairo-dock-launcher-API-daemon, which is: ImportError: No module named 'glib' and ImportError: No module named 'gi'

maybe you miss the python package 'glib' (ang gtk) ?

Edit: also, after re-importing the applet, try to force the use of python2: edit ~/.config/cairo-dock/third-party/Gmail/Gmail and replace python by python2 on the first line (of course, if you have python2 installed)

matttbe, Sunday 24 March 2013 à 17:06


Subscription date : 24 January 2009
Messages : 12573
No, you can use the GMail applet with python 3 but it seems you need to install a package with this file: /usr/lib/girepository-1.0/GLib-2.0.typelib (I guess it's gobject-introspection)

kevdog, Sunday 24 March 2013 à 18:31


Subscription date : 20 March 2013
Messages : 20
I'm kind of getting lost of what to do.
I do have the file /usr/lib/girepository-1.0/Glib-2.0.typelib

I also have installed the gobject-introspection package:

(This output is from pacman -Ss gobject)

extra/gobject-introspection 1.34.2-1 [installed]
Introspection system for GObject-based libraries

Do you think I'm missing another package?

I have packaged glib2 installed but not strictly glib.

fabounet, Sunday 24 March 2013 à 18:43


Subscription date : 30 November 2007
Messages : 17118
It's the one for python that you need.

For instance on Ubuntu I have:
ls /usr/lib/python3/dist-packages/gi/
_gi_cairo.cpython-32mu.so _glib importer.py module.py __pycache__ repository
_gi.cpython-32mu.so _gobject __init__.py overrides pygtkcompat.py types.py


The applet works nicely.

kevdog, Sunday 24 March 2013 à 19:01


Subscription date : 20 March 2013
Messages : 20
I dont have a dist-packages directory in either the python2.7 or python3.3 directory.

matttbe, Sunday 24 March 2013 à 19:24


Subscription date : 24 January 2009
Messages : 12573
Did you install python2-gobject and python-gobject too?

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Problems with Cairo Dock applets - Gmail and Xchat
Page : 1 2
Guest English 38 kevdog [Read]
29 March 2013 à 13:13


Glx-Dock / Cairo-Dock List of forums Applets | Applets Problems with Cairo Dock applets - Gmail and Xchat 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.