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 0.5.0.0-preview

Fixed in version 0.5.0.0

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

Bug is archived. No further changes may be made.

Full log


Message #10 received at 534@bugs.x2go.org (full text, mbox, reply):

Received: (at 534) by bugs.x2go.org; 5 Jul 2014 22:21:04 +0000
From mike.gabriel@das-netzwerkteam.de  Sun Jul  6 00:21:02 2014
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
Subject: Re: [X2Go-Dev] Bug#534: Windows: PyHoca-GUI fails to start
 (ImportError: No module named wx)
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
[Message part 1 (text/plain, inline)]
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-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:

"""
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  
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
-- 

DAS-NETZWERKTEAM
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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Mar 29 07:36:06 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.