← Back to team overview

gtg team mailing list archive

[Bug 537885] Re: gtg crashed with RuntimeError in <module>()

 

The problem is happening in GTG/tools/openurl.py where it forks a
process to check if xdg-open or exo-open are available on the system.

If I make the following change, the crash is prevented (but we lose the
ability to detect these programs - so only works on a gnome desktop):

--- openurl.py.old	2010-04-13 11:18:30.000000000 +0200
+++ openurl.py	2010-04-13 11:18:59.000000000 +0200
@@ -56,8 +56,8 @@
 def _spawn_quiet(*args):
     return _spawn_executable(True, False, *args)
 
-_has_xdg = _test_executable('xdg-open', '--help')
-_has_exo = _test_executable('exo-open', '--help')
+_has_xdg = False
+_has_exo = False
 
 def openurl(url):
     if _has_xdg: # freedesktop is the best choice :p

I don't know how to fix it (don't have time to experiment further) but
this seems to be where the problem lies.

-- 
gtg crashed with RuntimeError in <module>()
https://bugs.launchpad.net/bugs/537885
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Confirmed
Status in “gtg” package in Ubuntu: Confirmed

Bug description:
Binary package hint: gtg

Just started it up on ubuntu 10.04 alpha 3 and got this i kept running but hey might as well file a report because it might help someone

ProblemType: Crash
Architecture: i386
Date: Fri Mar 12 00:31:22 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/gtg/gtg
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100224.1)
InterpreterPath: /usr/bin/python2.6
Package: gtg 0.2.3-1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gtg
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
PythonArgs: ['/usr/bin/gtg']
SourcePackage: gtg
Title: gtg crashed with RuntimeError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/gtg", line 51, in <module>
     import GTG.gtg
 RuntimeError: not holding the import lock
Uname: Linux 2.6.32-16-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare