[pkg-x2go-devel] Bug#759079: Bug#759079: Bug#759079: pyhoca-gui: patch for wxPython 3.0
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Tue Sep 30 13:11:42 UTC 2014
Hi Olly,
On Sa 20 Sep 2014 09:02:51 CEST, Olly Betts wrote:
> On Sat, Sep 20, 2014 at 08:37:12AM +0200, Mike Gabriel wrote:
>> Once this segfault issue has been fixed, the upstream release is due.
>> I haven't had time to investigate this, yet. Any input from your side
>> (with more wx expertise than mine) will be appreciated.
>
> I can certainly take a look.
I fixed the issue upstream [1]. Thanks for your input on this. I will
release pyhoca-gui 0.5.0.0 upstream ASAP.
Quoting the essence:
"""
--- a/pyhoca/wxgui/launcher.py
+++ b/pyhoca/wxgui/launcher.py
@@ -29,16 +29,13 @@ import gettext
import subprocess
import copy
-import gevent.monkey
-gevent.monkey.patch_all()
-
-try:
- import wxversion
- wxversion.select(['3.0', '2.9', '2.8'])
-except: pass
-
import wx
+# we need to register a wx.App() instance before we load any
+# of the X2Go modules. When importing x2go.*, gevent.monkey_patch_all()
+# is called which seems to break wxPython 3.0...
+_dummy_app = wx.App(redirect=False, clearSigInt=False)
+
from x2go import X2GOCLIENT_OS
from x2go import CURRENT_LOCAL_USER
from x2go import BACKENDS
"""
Mike
[1]
http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=b5dada2c7fd772e90d148c0a1403aef43138ea23
--
DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148
GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.alioth.debian.org/pipermail/pkg-x2go-devel/attachments/20140930/55e27e9c/attachment.sig>
More information about the Pkg-x2go-devel
mailing list