X2Go Bug report logs - #534
Windows: PyHoca-GUI fails to start (ImportError: No module named wx)

version graph

Package: pyhoca-gui; Maintainer for pyhoca-gui is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-gui is src:pyhoca-gui.

Reported by: Michael DePaulo <mikedep333@gmail.com>

Date: Sat, 5 Jul 2014 13:50:02 UTC

Severity: normal

Tags: pending

Found in version

Fixed in version

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#534: [X2Go-Dev] Bug#534: Windows: PyHoca-GUI fails to start (ImportError: No module named wx)
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 534@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Sat, 05 Jul 2014 22:25:01 +0000
Resent-Message-ID: <handler.534.B534.140459886413217@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 534
X-X2Go-PR-Package: pyhoca-gui
Received: via spool by 534-submit@bugs.x2go.org id=B534.140459886413217
          (code B ref 534); Sat, 05 Jul 2014 22:25:01 +0000
Received: (at 534) by bugs.x2go.org; 5 Jul 2014 22:21:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 4F1905DB1E
	for <534@bugs.x2go.org>; Sun,  6 Jul 2014 00:21:02 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id EF16C3F4E;
	Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id C052B3BA89;
	Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([])
	by localhost (grimnir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id xe1u4Kl0Yn4X; Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 6C9D63B94A;
	Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
Received: from pD9E9F199.dip0.t-ipconnect.de (pD9E9F199.dip0.t-ipconnect.de
 []) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Sat, 05 Jul 2014 22:21:01 +0000
Date: Sat, 05 Jul 2014 22:21:01 +0000
Message-ID: <20140705222101.Horde.ezxg3437QYncLI5bM_NCCQ1@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Michael DePaulo <mikedep333@gmail.com>, 534@bugs.x2go.org
References: <CAMKht8hdBmqHwbC6N-9WMGLkhhvNWjgLb8CV5SgpErw7_HX94w@mail.gmail.com>
In-Reply-To: <CAMKht8hdBmqHwbC6N-9WMGLkhhvNWjgLb8CV5SgpErw7_HX94w@mail.gmail.com>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.7)
Accept-Language: en,de
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101
 Firefox/30.0 Iceweasel/30.0
Content-Type: multipart/signed; boundary="=_xQQBuPqAprUPHVS6IDMcmA5";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Hi Michael,

On  Sa 05 Jul 2014 15:46:24 CEST, Michael DePaulo wrote:

> package: pyhoca-gui
> version:
> For some reason I cannot figure out, on my home desktop (Windows 8.1
> with update 1 64-bit) I experience the error below when I try to
> launch PyHoca-GUI in development mode.
> I have not been able to testPyHoca-GUI in regular/installed mode due to #531.
> Yet on the X2Go-WinBuilder VM (Windows 7 64-bit SP1,) which I am
> almost certain I did the same exact setup work on (according to the
> instructions immediately below), it does not have the problem. It
> launches pyhoca-gui successfully.
> http://wiki.x2go.org/doku.php/wiki:development:build-howto-mswin:pyhoca-gui
> I've attached a 1 line fix. I'd like to discuss it before I commit it.

IMHO you have to make sure that the correct wx version is loaded.

So if we place an "import wx" into pyhoca-gui(.exe), we should make  
sure the correct wx.version is used. So "import wx" needs to be blown  
up to:

    import wxversion
except: pass

    import wxversion
except: pass

import wx

If that fixes the problem on Windows, I am happy with these extra  
lines in pyhoca-gui. (Please accompany those lines with a comment that  
explains, why the import occurs there, although the wx module is not  
used in pyhoca-gui(.exe) directly (but only in submodules).


mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Jul 21 12:56:15 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.