Bug 6417 - cairo-dock: CDApplet is not installed in Python's module directory
Summary: cairo-dock: CDApplet is not installed in Python's module directory
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure MGA2-64-OK MGA2-32-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-06-11 16:12 CEST by doro2k
Modified: 2012-08-21 16:50 CEST (History)
4 users (show)

See Also:
Source RPM: cairo-dock-plugins-2.4.0_2-3.1.mga2
CVE:
Status comment:


Attachments

Description doro2k 2012-06-11 16:12:37 CEST
Description of problem:

The pidgin plugin does not work (also the case for thunderbird plugin and I guess others). When I start cairo-dock in a terminal, I receice the following error: File "./Pidgin", line 30, in <module>
from CDApplet import CDApplet, _
ImportError: No module named CDApplet

Version-Release number of selected component (if applicable):

cairo-dock 2.4.0.2, pidgin plugin 1.0.4

How reproducible:

Just start cairo-dock

I opened a thread in the cairo-dock forum and the devolper said that CDApplet is not installed: it should be installed in Python's module directory if python is available during the compilation. Furthermore he pointed to the fact that a newer stable version is available. Link to the thread: http://glx-dock.org/bg_topic.php?t=6208
Manuel Hiebel 2012-06-25 05:39:42 CEST

Assignee: bugsquad => doktor5000

Comment 1 Florian Hubold 2012-06-25 22:18:49 CEST
:/
It's on my list of packages to be updated, will take a look soon.
Thanks for dropping a note :)

Status: NEW => ASSIGNED
CC: (none) => doktor5000

Comment 2 doro2k 2012-06-26 09:09:29 CEST
That would be great, thanks!
Comment 3 Florian Hubold 2012-08-12 18:56:55 CEST
Just had a look, and found the problem. Upstream tries to directly install into /usr which is not possible during package build. Workarounded it by manually adjusting the installation of the two missing files, CDApplet.py and CDBashApplet.py.
Comment 4 Florian Hubold 2012-08-12 19:11:46 CEST
There is now cairo-dock-plugins-2.4.0_2-3.1.mga2 in core/updates_testing to validate
-------------------------------------------------------


Suggested advisory:
-------------------
This update addresses the following issue:

- CDApplet.py and CDBashApplet.py were not installed into the python module path, which makes other plugins fail, like the pidgin plugin
- Pidgin plugin is now working again, among others


-------------------------------------------------------
Steps to reproduce:

- install/update to update candidate
- add pidgin plugin from website (go to Settings -> Plugins -> and at the bottom right there's a link "More applets" -> there, scroll down to the Pidgin plugin, and drag the link "Drag this link on your dock to install it!" anywhere to cairo-dock, you should see some animated purple arrows pointing downward.)
- verify that pidgin plugin works (e.g. that pidgin can be launched via the plugin, or status can be changed)

Assignee: doktor5000 => qa-bugs

Samuel Verschelde 2012-08-13 12:54:56 CEST

CC: (none) => stormi
Whiteboard: (none) => has_procedure

Comment 5 Samuel Verschelde 2012-08-20 11:56:38 CEST
Testing complete on Mageia 2 x86_64. I installed all cairo-dock-* packages from updates_testing.

It seems to work fine, but there are a number of error messages in console (not a regression, but maybe some can be fixed too?). The paths containing "iurt" in them are suspect.

[samuel.verschelde@tech009 Documents]$ cairo-dock
Gtk-Message: Failed to load module "canberra-gtk-module"

 ============================================================================
        Cairo-Dock version: 2.4.0.2
        Compiled date:  Nov  6 2011 14:24:45
        Running with OpenGL: 1
 ============================================================================

Binding '<Control>F6' failed!
warning :  (/home/iurt/rpm/BUILD/cairo-dock-2.4.0~2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:311)
  Couldn't bind <Control>F6
 This shortkey is probably already used by another applet or another application
cairo_dock_create_surface_from_image_simple: assertion `cImageFile != 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
Binding '<Control>F10' failed!
warning :  (/home/iurt/rpm/BUILD/cairo-dock-2.4.0~2/src/gldit/cairo-dock-keybinder.c:cd_keybinder_bind:311)
  Couldn't bind <Control>F10
 This shortkey is probably already used by another applet or another application
_cairo_dock_create_surface_from_desktop_bg: assertion `iRootPixmapID != 0' failed
warning :  (/home/iurt/rpm/BUILD/cairo-dock-plugins-2.4.0~2/switcher/src/applet-load-icons.c:cd_switcher_load_desktop_bg_map_surface:183)
  couldn't get the wallpaper

Whiteboard: has_procedure => has_procedure MGA2-64-OK

Samuel Verschelde 2012-08-20 12:11:59 CEST

Summary: CDApplet is not installed in Python's module directory => cairo-dock: CDApplet is not installed in Python's module directory

Samuel Verschelde 2012-08-20 12:12:16 CEST

Source RPM: cairo-dock-2.4.0_2-2.mga2.src.rpm => cairo-dock-plugins-2.4.0_2-3.1.mga2

Comment 6 Samuel Verschelde 2012-08-20 22:24:06 CEST
Tested i586, installing all cairo-dock-* packages. The bugs the update claims to fix are indeed fixed. I had 2 non-regression problems :
- if activating opengl support look was all broken, maybe due to my testing in virtualbox
- the second icon, kcalc, did not work

Validating the update, please open a new bug if those issues (and the messages from previous comment) are significant.

See comment #4 for SRPM and advisory.

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: has_procedure MGA2-64-OK => has_procedure MGA2-64-OK MGA2-32-OK

Comment 7 Thomas Backlund 2012-08-21 16:50:14 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0167

Status: ASSIGNED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.