Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Gmail HS en version 3.4
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] Gmail HS en version 3.4
lesebas Français 14

lesebas, Monday 27 October 2014 à 22:48


Subscription date : 24 November 2008
Messages : 298
Salut à tous,

Ça fait un moment que je n'ai pas trainé sur le forum... et je m’aperçois que ce bon vieux dock continue a évoluer en récupérant la dernière update 3.4 sur ma distrib archlinux.

Petit soucis, malgré un update des plugins extra en 3.4 à la main (le pkg n'est pas à jour sur AUR ) Gmail refuse de fonctionner :

[sebastien@Lupus ~]$ cairo-dock

(cairo-dock:1112): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:2769:41: Expected a valid selector
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/implementations/cairo-dock-egl.c:gldi_register_egl_backend:232)
Cairo-Dock was not built with EGL support

============================================================================
    Cairo-Dock version : 3.4.0
    Compiled date : Oct 20 2014 10:03:34
    Built with GTK : 3.14
    Running with OpenGL: 1
============================================================================

warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-module-manager.c:gldi_module_new_from_so_file:160)
while opening module '/usr/lib/cairo-dock/libcd-Recent-Events.so' : (libzeitgeist-1.0.so.1: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-module-manager.c:gldi_module_new_from_so_file:160)
while opening module '/usr/lib/cairo-dock/libcd-terminal.so' : (libvte-2.91.so.0: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type)
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-surface-factory.c:cairo_dock_create_surface_from_image:464)
This file (/home/sebastien/.icons/Faenza-Dark/places/scalable/start-here.svg) doesn't exist or is not readable.
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-keybinder.c:init_object:358)
Couldn't bind '<Control>F1' (Menu d'Applications: Afficher/cacher le menu des applications)
This shortkey is probably already used by another applet or another application
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-keybinder.c:init_object:358)
Couldn't bind '<Control>F2' (Menu d'Applications: Afficher/cacher la fenêtre de lancement rapide)
This shortkey is probably already used by another applet or another application
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-keybinder.c:init_object:358)
Couldn't bind '<Control>F12' (Se déconnecter: Afficher le menu de déconnexion)
This shortkey is probably already used by another applet or another application
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-keybinder.c:init_object:358)
Couldn't bind '<Control>F3' (Contrôleur de Son: Afficher / Cacher le menu de son)
This shortkey is probably already used by another applet or another application
Traceback (most recent call last):
File "./Gmail", line 22, in <module>
import gtk # used for Menu class displaying inbox
ImportError: No module named 'gtk'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./Gmail", line 25, in <module>
from gi.repository import GLib as glib
File "/usr/lib/python3.4/site-packages/gi/__init__.py", line 39, in <module>
raise ImportError(_static_binding_error)
ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183
warning : (/build/cairo-dock/src/cairo-dock-core-3.4.0/src/gldit/cairo-dock-keybinder.c:init_object:358)
Couldn't bind '<Control>F6' (Navigateur rapide: Afficher/cacher le menu de navigation rapide)
This shortkey is probably already used by another applet or another application
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed
_cd_find_volume_name_from_drive_name: assertion 'pDrive != NULL' failed

taiebot65, Tuesday 28 October 2014 à 20:56


Subscription date : 26 October 2008
Messages : 1904
Well i am not really good at coding but i think i would try the solution.

ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183


so i would open file file .gmail in ~/.config/thirdparty/gmail/
and replace gmail.py as per above (line 39)

or maybe you need to delete the folder and redownload the applet as it seems that its correct on the server

lesebas, Tuesday 28 October 2014 à 21:37


Subscription date : 24 November 2008
Messages : 298
Well try but it doesn't help me... I don't have any local file as I'm using the applet directly downloaded from launchpad and installed on the system. By the way I've try to drag and drop the applet from the extra section of the website but it doesn't work better.

taiebot65, Tuesday 28 October 2014 à 21:48


Subscription date : 26 October 2008
Messages : 1904
yes the files are downloaded into ~/.config/cairo-dock/thirdparty/ when dragged from the website so deleting the gmail folder here would delete the applet a restart of cairo-dock will be needed to show that it has been correctly uninstalled. But it also can be a python compatibility

brianw, Wednesday 29 October 2014 à 02:24


Subscription date : 25 April 2012
Messages : 270
A solution for a similar issue from this forum http://www.linuxquestions.org/questions/programming-9/python-importerror-no-module-named-gi-repository-921361/ says to ensure that python-gobject is installed.

lesebas, Wednesday 29 October 2014 à 08:33


Subscription date : 24 November 2008
Messages : 298
Hello, Yes I've already check this point, but python-gobject is already installed. The applet gmail was working well with the 3.3.2 version.

lesebas, Saturday 01 November 2014 à 19:35


Subscription date : 24 November 2008
Messages : 298
Hello,

I think the problem come from Glib import... by the way if I try the command in python console, I have no problem :

[sebastien@Lupus ~]$ python
Python 3.4.2 (default, Oct 8 2014, 13:44:52)
[GCC 4.9.1 20140903 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from gi.repository import GLib as glib
>>>

brianw, Sunday 02 November 2014 à 00:35


Subscription date : 25 April 2012
Messages : 270
I don't seem to have this issue on 3.4.0 which I compiled on my system (see system info here http://www.glx-dock.org/bg_topic.php?t=8112).

I am using the gmail files that were already in the .config/cairo-dock/third-party with the previous version but I did a diff and the only differences are:

> # https://wiki.python.org/moin/EscapingHtml
> html_escape_table = {
> "&": "&",
> '"': """,
> "'": "'",
> ">": ">",
> "<": "<",
> }
>
> def html_escape(text):
> """Produce entities within text."""
> return "".join(html_escape_table.get(c,c) for c in text)
>
49a63,65
> # create label menu with markups
> string = '<b>' + html_escape(mail['author']) + ':</b>\n'
>
52c68
< mail['title'] = '<i>(' + _('No Subject') + ')</i>'
---
> string += '<i>(' + _('No Subject') + ')</i>'
54,56c70,73
< mail['title'] = mail['title'][:77] + '...'
< # create markups
< string = '<b>'+mail['author']+':</b>\n'+mail['title']
---
> string += html_escape(mail['title'][:77]) + '...'
> else:
> string += html_escape(mail['title'])
>

lesebas, Friday 07 November 2014 à 19:37


Subscription date : 24 November 2008
Messages : 298
I've updated my laptop with the same configuration (Archlinux +xfce4) and no problem. Maybe it's a conflict between two "python" package. Here are the installed packages :

[sebastien@Lupus ~]$ pacman -Qs python
local/gstreamer0.10-python 0.10.22-2
Python bindings for GStreamer 0.10
local/libreoffice-still-common 4.2.7-1 (libreoffice-still)
Common files for LibreOffice maintenance branch
local/pygtk 2.24.0-5
Python bindings for the GTK widget set
local/pyorbit 2.24.0-5
Python bindings for ORBit2
local/python 3.4.2-1
Next generation of the python high-level scripting language
local/python-cairo 1.10.0-4
Python bindings for the cairo graphics library
local/python-dbus 1.2.0-4
Python 3.3 bindings for DBUS
local/python-dbus-common 1.2.0-4
Common dbus-python files shared between python-dbus and python2-dbus
local/python-gobject 3.14.0-2
Python 3 bindings for GObject
local/python-gobject2 2.28.6-11
Python 3 bindings for GObject2
local/python-lxml 3.4.0-1
Python3 binding for the libxml2 and libxslt libraries
local/python-pycups 1.9.68-1
Python 3 CUPS Bindings
local/python-pycurl 7.19.5-1
A Python 3.x interface to libcurl
local/python-xdg 0.25-2
Python library to access freedesktop.org standards
local/python2 2.7.8-2
A high-level scripting language
local/python2-apsw 3.8.4.3-1
Python2 wrapper for SQLite
local/python2-beaker 1.6.4-2
Caching and sessions WSGI middleware for use with web applications and
stand-alone Python scripts and applications
local/python2-beautifulsoup3 3.2.1-3
A Python HTML/XML parser designed for quick turnaround projects like
screen-scraping
local/python2-bonobo 2.28.1-9
Python bindings for interacting with Bonobo
local/python2-cairo 1.10.0-2
Python2 bindings for the cairo graphics library
local/python2-cherrypy 3.6.0-1
A pythonic, object-oriented web development framework
local/python2-cssselect 0.9.1-2
A Python2 library that parses CSS3 Selectors and translates them to XPath
1.0
local/python2-cssutils 1.0-2
A CSS Cascading Style Sheets library for Python
local/python2-dateutil 2.2-2
Provides powerful extensions to the standard datetime module
local/python2-dbus 1.2.0-4
Python 2.7 bindings for DBUS
local/python2-distutils-extra 2.38-2
Enhancements to the Python build system
local/python2-dnspython 1.11.1-1
A DNS toolkit for Python
local/python2-gconf 2.28.1-9
Python bindings for interacting with GConf
local/python2-gnomecanvas 2.28.1-9
Python bindings for the GNOME Canvas
local/python2-gnomevfs 2.28.1-9
Python bindings for interacting with gnome-vfs
local/python2-gobject 3.14.0-2
Python 2 bindings for GObject
local/python2-gobject2 2.28.6-11
Python 2 bindings for GObject2
local/python2-libgnome 2.28.1-9
Python bindings for libgnome
local/python2-lxml 3.4.0-1
Python2 binding for the libxml2 and libxslt libraries
local/python2-mako 1.0.0-1
Hyperfast and lightweight templating for the Python2 platform
local/python2-markupsafe 0.23-1
Implements a XML/HTML/XHTML Markup safe string for Python
local/python2-mechanize 0.2.5-4
Stateful programmatic web browsing in Python
local/python2-netifaces 0.10.4-1
Portable module to access network interface information in Python
local/python2-notify 0.1.1-13
Python bindings for libnotify
local/python2-numpy 1.9.0-1
Scientific tools for Python
local/python2-pexpect 3.3-1
Make Python a better tool for controlling and automating other programs
local/python2-pillow 2.6.1-1
Python Imaging Library (PIL) fork. Python2 version.
local/python2-psutil 2.1.3-1
A cross-platform process and system utilities module for Python2
local/python2-pybluez 0.20-2
Python wrapper for the BlueZ Bluetooth stack
local/python2-pycups 1.9.68-1
Python 2 CUPS Bindings
local/python2-pycurl 7.19.5-1
A Python 2.x interface to libcurl
local/python2-pysmbc 1.0.15.3-1
Python 2 bindings for libsmbclient
local/python2-setuptools 1:7.0-1
Easily download, build, install, upgrade, and uninstall Python packages
local/python2-sip 4.16.3-1
Python 2.x SIP bindings for C and C++ libraries
local/python2-six 1.8.0-1
Python 2 and 3 compatibility utilities
local/python2-xdg 0.25-2
Python library to access freedesktop.org standards
local/reflector 2014.11-1
A Python 3 module and script to retrieve and filter the latest Pacman mirror
list.
local/scons 2.3.4-1
Extensible Python-based build utility
local/sip 4.16.3-1
A tool that makes it easy to create Python bindings for C and C++ libraries
local/wxpython 3.0.1.1-2
A wxWidgets GUI toolkit for Python
local/wxpython2.8 2.8.12.1-1
A wxWidgets GUI toolkit for Python

lesebas, Friday 07 November 2014 à 20:31


Subscription date : 24 November 2008
Messages : 298
I've got it! I've installed an application "system-config-printer" that required python-gobject2 (and python-gobject ). That is this package that put the applet in fault... I will report the bug the the maintener of the package!

lesebas, Saturday 08 November 2014 à 22:59


Subscription date : 24 November 2008
Messages : 298
Ok I've found a workaround by compiling system-config-printer ( http://cyberelk.net/tim/software/system-config-printer/ ) by myself without python-Gobject2... by the way I think there is a problem with the applet Gmail that do not support python-GObjetc2. Does anyone can reproduce (and confirm) the bug on an other system (me = archlinux + xfce)?

matttbe, Sunday 09 November 2014 à 12:50


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

This applet should use python-Gobject (3) from GI if you're using Python 3 (from gi.repository import GLib as glib) and python-glib (not from GI) if you're using Python 2:
try:
    
import glib # used for timer
    
import gtk # used for Menu class displaying inbox
    
import libxml2 # used to parse XML content from Gmail inbox
except:
    
from gi.repository import GLib as glib
    from gi
.repository import Gtk as gtk
    from gi
.repository import Gdk as gdk
    from lxml import etree
The first block is for Python 2 and the second one for Python 3.

Does it work if you add this line before from gi.repository import GLib as glib:
from gi.repository import GObject

lesebas, Sunday 09 November 2014 à 17:38


Subscription date : 24 November 2008
Messages : 298
matttbe :

Does it work if you add this line before from gi.repository import GLib as glib:
from gi.repository import GObject


Unfortunately no...

matttbe, Sunday 09 November 2014 à 17:57


Subscription date : 24 January 2009
Messages : 12573
Then there is maybe a conflict between python-gobject and python-gobject2... We should check how other projects manage this kind of problem on ArchLinux.

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Gmail HS en version 3.4
lesebas Français 14


Glx-Dock / Cairo-Dock List of forums Applets | Applets Gmail HS en version 3.4 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.