cannot run gdesklets with python2.6

Bug #344079 reported by Savvas Radevic
76
This bug affects 10 people
Affects Status Importance Assigned to Milestone
gDesklets
Fix Released
Undecided
gDesklets Core Team
Nominated for 0.3x by Anshul
gdesklets (Debian)
Fix Released
Unknown
gdesklets (Fedora)
Fix Released
Medium
gdesklets (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Related to: https://bugs.launchpad.net/gdesklets/+bug/83922

$ apt-cache policy gdesklets
gdesklets:
  Installed: (none)
  Candidate: 0.36-5build1
  Version table:
     0.36-5build1 0
        500 http://archive.ubuntu.com jaunty/universe Packages

$ uname -a
Linux ubuntu 2.6.28-9-generic #31-Ubuntu SMP Wed Mar 11 15:43:49 UTC 2009 x86_64 GNU/Linux

I think either gdesklets or its dependencies is not compatible with python 2.6, at least not here on my machine:

I tried the new debian version and the current ubuntu version (as mentioned in bug #83922 ) and it doesn't work unfortunately:

$ gdesklets check
Checking requirements:
 - sys ... found
 - xml.parsers.expat ... found
 - xml.sax ... found
 - gtk ... found
**
ERROR:/build/buildd/pyorbit-2.24.0/src/pyorbit-utils.c:39:_pyorbit_escape_name: assertion failed: (keyword_mod != NULL)
 - ORBit ...Aborted (core dumped)

I also tried the debian version of python-pyorbit, and it failed with the same message again:
$ gdesklets restart
Restarting gdesklets-daemon...
Starting gdesklets-daemon...
Connecting to daemon [ ### ]
==========================================================[03/11/09-17:55:48]===
Could not import tiling module!
Cannot establish connection to daemon: timeout!
The log file might help you solving the problem.

$ gdesklets shell
forger@ubuntu:~$ _new_imp() takes at most 4 arguments (5 given)
EventPipe in /usr/lib/gdesklets/Controls/EventPipe is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Calendar in /usr/lib/gdesklets/Controls/Calendar is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Time in /usr/lib/gdesklets/Controls/Time is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
System in /usr/lib/gdesklets/Controls/System is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
HDDTemp in /usr/lib/gdesklets/Controls/HDDTemp is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Sensors in /usr/lib/gdesklets/Controls/Sensors is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
ArrayBuffer in /usr/lib/gdesklets/Controls/ArrayBuffer is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
URI in /usr/lib/gdesklets/Controls/URI is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Random in /usr/lib/gdesklets/Controls/Random is NOT a valid plugin!

==========================================================[03/11/09-17:56:15]===
Could not import tiling module!I tried the new debian version and it doesn't work unfortunately:
$ gdesklets check
Checking requirements:
 - sys ... found
 - xml.parsers.expat ... found
 - xml.sax ... found
 - gtk ... found
**
ERROR:/build/buildd/pyorbit-2.24.0/src/pyorbit-utils.c:39:_pyorbit_escape_name: assertion failed: (keyword_mod != NULL)
 - ORBit ...Aborted (core dumped)

I also tried the debian version of python-pyorbit, and it failed with the same message again:
$ gdesklets restart
Restarting gdesklets-daemon...
Starting gdesklets-daemon...
Connecting to daemon [ ### ]
==========================================================[03/11/09-17:55:48]===
Could not import tiling module!
Cannot establish connection to daemon: timeout!
The log file might help you solving the problem.

$ gdesklets shell
forger@ubuntu:~$ _new_imp() takes at most 4 arguments (5 given)
EventPipe in /usr/lib/gdesklets/Controls/EventPipe is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Calendar in /usr/lib/gdesklets/Controls/Calendar is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Time in /usr/lib/gdesklets/Controls/Time is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
System in /usr/lib/gdesklets/Controls/System is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
HDDTemp in /usr/lib/gdesklets/Controls/HDDTemp is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Sensors in /usr/lib/gdesklets/Controls/Sensors is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
ArrayBuffer in /usr/lib/gdesklets/Controls/ArrayBuffer is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
URI in /usr/lib/gdesklets/Controls/URI is NOT a valid plugin!
_new_imp() takes at most 4 arguments (5 given)
Random in /usr/lib/gdesklets/Controls/Random is NOT a valid plugin!

==========================================================[03/11/09-17:56:15]===
Could not import tiling module!

Related branches

Revision history for this message
Y. Hida (yozohida) wrote :

I have a similar problem on Gentoo with python 2.6.
I managed to get it working by applying a patch I found from Arch Linux (no-import-overide.patch):
  http://repos.archlinux.org/viewvc.cgi/gdesklets/repos/extra-x86_64/

This patch just comments out certain module import code, so
it may break something else... (but works for me).

Revision history for this message
Savvas Radevic (medigeek) wrote : Re: [Bug 344079] Re: cannot run gdesklets with python2.6

Thanks for the patch and the info! probably the gdesklets team can
take care of it

Revision history for this message
Bjoern Koch (h.humpel) wrote :

Thanks for the patch. We will be looking into it (ASAP) ...

Changed in gdesklets:
assignee: nobody → gdesklets-core-team
status: New → Triaged
Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

Description of problem:
gdesklets never connects to server when first run (timeout) and generates the error "Could not import tiling module!".

Version-Release number of selected component (if applicable):
gdesklets-0.36.1-5.fc11.i586.rpm

How reproducible:
Always

Steps to Reproduce:
1.Run gdesklets from terminal
2.Wait for ~1 minute for "Connecting to daemon" to complete.
3.Timeout failure.

Actual results:
[jguerdat@toshiba ~]$ gdesklets
Starting gdesklets-daemon...
Connecting to daemon [ ### ]
==========================================================[04/29/09-12:50:39]===
Could not import tiling module!

Cannot establish connection to daemon: timeout!
The log file might help you solving the problem.

Log has no entries.

Expected results:
gdesklet startup normal with no errors

Additional info:

Revision history for this message
Luya Tshimbalanga (luya) wrote :

Keeping track with Fedora Rawhide version because of the use of python 2.6.
Similar message:

$ gdesklets check
Vérifie les prérequis :
 - sys ... trouvé
 - xml.parsers.expat ... trouvé
 - xml.sax ... trouvé
 - gtk ... trouvé
**
ERROR:pyorbit-utils.c:39:_pyorbit_escape_name: assertion failed: (keyword_mod != NULL)
 - ORBit ...

Revision history for this message
In , Luya (luya-redhat-bugs) wrote :

The bug is caused by API incompatibility with python 2.6 which also affects other distributions. Upstream is investigating on it.

Changed in gdesklets (Fedora):
importance: Undecided → Unknown
status: New → Unknown
Changed in gdesklets (Fedora):
status: Unknown → Confirmed
Revision history for this message
In , Savvas (savvas-redhat-bugs) wrote :

I'm not very familiar with the rpm packaging system, but in case fedora wants to temporarily fix this (as downstream):
- make python 2.5 devel available during build (python-devel-2.5 ?).
- restrict it to python < 2.6 until a fix is out
- something like the following lines in the .spec file:

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
for i in `find %{buildroot} -type f`; \
  do sed -i -e '1s,#!.*python.*,#!/usr/bin/python2.5,' $i; \
done

(not tested on fedora/redhat)

Revision history for this message
In , Luya (luya-redhat-bugs) wrote :

Unfortunately the fix is useless because Fedora 11 and Rawhide have not python 2.5 available, only 2.6.

Revision history for this message
Michael Terry (mterry) wrote :

gdesklet folks: In the course of updating Ubuntu's gdesklets version, I revisited this issue. The attached patch fixes the import error. I don't know if others exist yet. Will do some further testing. But this patch at least should be applied.

Michael Terry (mterry)
Changed in gdesklets (Ubuntu):
assignee: nobody → Michael Terry (mterry)
status: New → In Progress
Revision history for this message
Bjoern Koch (h.humpel) wrote :

Thanks for the patch.
Seems to be working here fine on gentoo, too.
Applied to the current development branch here on launchpad (rev #118).
Should/will be released with gDesklets 0.36.2.

Changed in gdesklets:
milestone: none → release-of-0.36.2
status: Triaged → In Progress
Revision history for this message
Luya Tshimbalanga (luya) wrote :

Thanks, Terry. It worked too on Fedora branch as well. I apply that patch until gdesklets Core team release 0.36.2.

Revision history for this message
In , Luya (luya-redhat-bugs) wrote :

Please test http://koji.fedoraproject.org/koji/buildinfo?buildID=101963

This version is patched to address python 3.6 issue until upstream releases 0.36.2

Revision history for this message
Joe Sapp (sappj) wrote :

Can anybody comment on the minimum Python dependency of this patch? The README claims Python >= 2.3, so I'd like to make sure it's still accurate.

Revision history for this message
Michael Terry (mterry) wrote :

Should work with all python versions. Apparently the import argument list changed for 2.6. But my patch uses the '*args, **kwargs' trick which basically says "i don't care what the arguments are or how many, just put them in a list"

So it's compatible for multiple python versions, particularly since the function doesn't use the arguments, just passes them on to the real import method.

Revision history for this message
Savvas Radevic (medigeek) wrote :

> Can anybody comment on the minimum Python dependency of this patch?  The
> README claims Python >= 2.3, so I'd like to make sure it's still
> accurate.

If you do have 2.3, you could try it out and let us know. :)

Revision history for this message
In , Stephanos (stephanos-redhat-bugs) wrote :

(In reply to comment #4)
> Please test http://koji.fedoraproject.org/koji/buildinfo?buildID=101963
>
> This version is patched to address python 3.6 issue until upstream releases
> 0.36.2

The 0.36.2 from koji works on x86_64

Revision history for this message
In , Jeff (jeff-redhat-bugs) wrote :

Sorry, missed this. The update 0.36.1 works fine. I see no 0.36.2 in koji.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

gdesklets-0.36.1-6.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gdesklets-0.36.1-6.fc11

Revision history for this message
In , Luya (luya-redhat-bugs) wrote :

0.36.2 is not released yet. Make sure to add karmas on above link so update can be pushed to stable.

Changed in gdesklets (Fedora):
status: Confirmed → In Progress
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

gdesklets-0.36.1-6.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.

Changed in gdesklets (Fedora):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gdesklets - 0.36.1-2ubuntu1

---------------
gdesklets (0.36.1-2ubuntu1) karmic; urgency=low

  * Merge from debian unstable (LP: #375461)
  * Dropped previous efforts to make the package use python2.5. It didn't
    get the depencencies right, causing LP: #350562
  * debian/patch/10_python2.6.patch:
    - Fix exception when running under python2.6. LP: #344079

gdesklets (0.36.1-2) unstable; urgency=low

  * Upload to unstable. Drop check-dist.mk.

gdesklets (0.36.1-1) experimental; urgency=low

  [ Deng Xiyue ]
  * New upstream release. (Closes: #506194)
    - debian/patches/10_manpage_fix.diff:
      debian/patches/40_dont_update_mime.diff:
      debian/patches/20_gdesklets-05-shift-f10.diff:
      debian/patches/70_relibtoolize.diff:
      Dropped, applied or fixed upstream or no longer necessary.
  * Adjust debian/watch and GNOME_DOWLOAD_URL to new location.
  * Upload to experimental due to Lenny freeze. Add check-dist.mk.
  * Update Standard-Version to 3.8.0.

  [ Loic Minier ]
  * Don't unregister the schema during first configuration.

 -- Michael Terry <email address hidden> Tue, 12 May 2009 13:47:58 -0400

Changed in gdesklets (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
cerebro84 (cerebro84) wrote :

Karmic? No backport scheduled?

Revision history for this message
Savvas Radevic (medigeek) wrote :

> Karmic? No backport scheduled?

What for? Doesn't the package in jaunty work?

Revision history for this message
Savvas Radevic (medigeek) wrote :

Ah wait, bug #350562 - perhaps Michael Terry can send it to
jaunty-backports (or even jaunty-updates)? :)

2009/6/27 cerebro84 <email address hidden>:
> Karmic? No backport scheduled?
>
> --
> cannot run gdesklets with python2.6
> https://bugs.launchpad.net/bugs/344079
> You received this bug notification because you are a direct subscriber
> of the bug.
>

2009/6/27 Savvas Radevic <email address hidden>:
>> Karmic? No backport scheduled?
>
> What for? Doesn't the package in jaunty work?
>

Revision history for this message
Chance Fulton (chance-fulton) wrote :

I just installed the gdesklets package on my netbook, and am definately having the same, or a very similar issue. The status says fix released, but its not workinghere. The version that installed had the python2.5 interpreter speified. After changing it to 2.6, i get the tilting module error explained in an earlier post.

I have Ubuntu 9.04 kernel
Linux netbook 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC 2009 i686 GNU/Linux

on an asus eeepc 900a

If the fix is simply to install python2.5, then I will simply not use this app.

thanks,

Revision history for this message
Savvas Radevic (medigeek) wrote :

> If the fix is simply to install python2.5, then I will simply not use
> this app.

FYI, it's fixed in future 9.10 (karmic):

http://packages.ubuntu.com/karmic/gdesklets
http://packages.ubuntu.com/karmic/gdesklets-data

Bjoern Koch (h.humpel)
Changed in gdesklets:
milestone: release-of-0.36.2 → release-of-0.36.3
Joe Sapp (sappj)
Changed in gdesklets:
status: In Progress → Fix Committed
Changed in gdesklets (Debian):
status: Unknown → New
Changed in gdesklets (Debian):
status: New → Fix Released
Revision history for this message
Bertrand Croq (bcroq) wrote :

Not fixed for me (0.36.1-4):

$ gdesklets check
Vérifie les prérequis :
 - sys ... trouvé
 - xml.parsers.expat ... trouvé
 - xml.sax ... trouvé
 - gtk ... trouvé
**
ERROR:/build/buildd/pyorbit-2.24.0/src/pyorbit-utils.c:39:_pyorbit_escape_name: assertion failed: (keyword_mod != NULL)
 - ORBit ...Abandon (core dumped)

$ gdesklets
Démarrage du démon gdesklets...
Connexion au démon [ ### ]
==========================================================[04/06/10-14:56:10]===
Could not import tiling module!

Connexion au démon [ ### ]

Revision history for this message
Francesco (francesco-wowdinamica) wrote :

I have same problem at Ubuntu 10.04

Revision history for this message
satwien (satwien) wrote :

I confirm, gdesklets it's not working on Ubuntu 10.04 RC x86_64.

Revision history for this message
yuruba (yuruba) wrote :

On 10.04 final release x86_64 either.

Revision history for this message
cana (b-gaffard) wrote :

Probleme résolu avec Ubuntu 10.04 LTS
http://forum.linuxmint.com/viewtopic.php?f=90&t=32554

Revision history for this message
Matt Mossholder (matt-mossholder) wrote :

I can confirm the one line change in the link provided in comment #21 works.

Revision history for this message
Kim Tucker (ktucker) wrote :

The fix at link in comment #21 also works in Ubuntu 10.10.

Revision history for this message
Chip VanDan (chip-vandan) wrote :

Same thing here with Ubuntu 10.04/Python 2.6

Followed the instructions in the link provided in comment #21 and everything is working now

Bjoern Koch (h.humpel)
Changed in gdesklets:
status: Fix Committed → Fix Released
Revision history for this message
pioruns (pioruns) wrote :

Same here. gdesklets 0.36.1-4, Ubuntu Maverick Meerkat AMD64 with proposed repository, everything updated. Log from:
sudo aptitude install gdesklets
gdesklets check
gdesklets

in attachments.

Revision history for this message
Joe Sapp (sappj) wrote :

Can someone please file a version bump request against the Ubuntu developers? Version 0.36.3 was just released and should fix this once and for all...

John Hancock (peaceofme)
Changed in gdesklets (Ubuntu):
assignee: Michael Terry (mterry) → John Hancock (peaceofme)
assignee: John Hancock (peaceofme) → nobody
Changed in gdesklets (Fedora):
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related questions

Related blueprints

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.