From unknown Wed Apr 15 20:45:51 2026
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
X-X2Go-PR-Keywords: 
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
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [88.198.48.199])
	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 [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id EF16C3F4E;
	Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	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 ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xe1u4Kl0Yn4X; Sun,  6 Jul 2014 00:21:01 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	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
 [217.233.241.153]) 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
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 217.233.241.153
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

This message is in MIME format and has been PGP signed.

--=_xQQBuPqAprUPHVS6IDMcmA5
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Michael,

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

> package: pyhoca-gui
> version: 0.5.0.0-preview
>
> 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-g=
ui
>
> 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=20=20
sure=20the correct wx.version is used. So "import wx" needs to be blown=20=
=20
up=20to:

"""
try:
     import wxversion
     wxversion.select('2.9')
except: pass

try:
     import wxversion
     wxversion.select('2.8')
except: pass

import wx
"""

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

Mike
--=20

DAS-NETZWERKTEAM
mike=20gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.x=
fb

--=_xQQBuPqAprUPHVS6IDMcmA5
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABAgAGBQJTuHpNAAoJEJr0azAldxsxQ0AP/j6EWE5HWUTILsyeGewEUjhW
9SX0dSMFSFQ0XyP6PtPKNv/pIV182Jg+KBMOEwJEbkiheADC4caJ73w8DBCPP2Ww
DPqmRMv6YYZ8JkfSAIZ17BKApy2lkq+hYt3jAgTPZomAOCurCX2soXM1mk0/HtR3
zd8ttSBIiVUgX9CvmScWvRT3MoyCPHbvLkqX9rmEOmHNLdzpTK8Vq9XVtMZ2rGqY
qwmPZjX8JeC+p5OYH8PXEBn2lCsyDBj0fWtPCuq53409p/QYbrmJsSN4AFnB4owq
9mwMLpMeaB5KTjXSxJ5J6sScBgLsbVR644sC5Uu11F9bnkneTPtRZHQcRMWc3MEm
frmKtI0dKH++30RfoJp3ThJMZb8dowlatAlXh0de3uA+eEZ5AuEMjXG6Z53E2u0Z
fQmWlhSPy7r5fsB0F8qg7hdtZxSOd2xP5MAx6u85Xf/cTmlJLWWwifW5DkWF3LfO
J+W5qFEz2j3QS8EfQM1KQna0s6T6rrfkLTK3glsBNRci7MR4IihYQUDsTSKjZcKx
q9S07x7SwFIIxdtLSph9AWHmPVm6PY3AeVuarw3OxDOdUmLdIY4AK2sIREBLFc0o
FVQNuZqsQDIt6MnnCorCxYbmhSfUZMzwiUiwxjjwY9hk4vHpM1AnyrdhJOCLusUt
4wkRjhX6kIEDAqCspSjg
=q0uZ
-----END PGP SIGNATURE-----

--=_xQQBuPqAprUPHVS6IDMcmA5--
