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.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Sat, 05 Jul 2014 13:50:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael DePaulo <mikedep333@gmail.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sat, 05 Jul 2014 13:50:02 GMT) (full text, mbox, link).


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

From: Michael DePaulo <mikedep333@gmail.com>
To: submit@bugs.x2go.org
Subject: Windows: PyHoca-GUI fails to start (ImportError: No module named wx)
Date: Sat, 5 Jul 2014 09:46:24 -0400
[Message part 1 (text/plain, inline)]
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.

--------
From Msysgit 1.9.4-preview20140611 bash:

mike@EXECUTOR:/c/x2gobuilds/pyhoca-gui :) [95] $ which python
/c/Python27/python
 mike@EXECUTOR:/c/x2gobuilds/pyhoca-gui :) [96] $ python --version
Python 2.7.8
 mike@EXECUTOR:/c/x2gobuilds/pyhoca-gui :( [97] $ ./pyhoca-gui
--start-xserver --lang=en
Traceback (most recent call last):
  File "./pyhoca-gui", line 33, in <module>
    from pyhoca.wxgui.launcher import PyHocaGUI_Launcher
  File "c:\x2gobuilds\pyhoca-gui\pyhoca\wxgui\launcher.py", line 45, in <module>
    import wx
ImportError: No module named wx
Exception KeyError: KeyError(32843536,) in <module 'threading' from
'c:\Python27\lib\threading.pyc'> ignored
 mike@EXECUTOR:/c/x2gobuilds/pyhoca-gui :( [98] $

--------
From cmd.exe:

C:\x2gobuilds\pyhoca-gui>which python
C:\Python27\python.EXE

C:\x2gobuilds\pyhoca-gui>python --version
Python 2.7.8

C:\x2gobuilds\pyhoca-gui>python ./pyhoca-gui --start-xserver --lang=en
Traceback (most recent call last):
  File "./pyhoca-gui", line 33, in <module>
    from pyhoca.wxgui.launcher import PyHocaGUI_Launcher
  File "C:\x2gobuilds\pyhoca-gui\pyhoca\wxgui\launcher.py", line 45, in <module>
    import wx
ImportError: No module named wx
Exception KeyError: KeyError(31671760,) in <module 'threading' from
'C:\Python27\lib\threading.pyc'> ignored

C:\x2gobuilds\pyhoca-gui>
[fix-pyhoca-gui-windows-startup.patch (application/octet-stream, attachment)]

Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Sat, 05 Jul 2014 22:25:01 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sat, 05 Jul 2014 22:25:01 GMT) (full text, mbox, link).


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

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)
Date: Sat, 05 Jul 2014 22:21:01 +0000
[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)]

Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Sun, 06 Jul 2014 14:45:01 GMT) (full text, mbox, link).


Acknowledgement sent to Michael DePaulo <mikedep333@gmail.com>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sun, 06 Jul 2014 14:45:02 GMT) (full text, mbox, link).


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

From: Michael DePaulo <mikedep333@gmail.com>
To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Cc: 534@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#534: Windows: PyHoca-GUI fails to start (ImportError: No module named wx)
Date: Sun, 6 Jul 2014 10:44:35 -0400
On Sat, Jul 5, 2014 at 6:21 PM, Mike Gabriel
<mike.gabriel@das-netzwerkteam.de> wrote:

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

Actually, on both machines, I installed wxPython 3.0.

Is 3.0 OK? Or should I downgrade them to 2.9?

-Mike#2


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Sun, 06 Jul 2014 19:00:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sun, 06 Jul 2014 19:00:02 GMT) (full text, mbox, link).


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

From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 534-submitter@bugs.x2go.org
Cc: control@bugs.x2go.org, 534@bugs.x2go.org
Subject: X2Go issue (in src:pyhoca-gui) has been marked as pending for release
Date: Sun, 6 Jul 2014 20:59:50 +0200 (CEST)
tag #534 pending
fixed #534 0.5.0.0
thanks

Hello,

X2Go issue #534 (src:pyhoca-gui) reported by you has been
fixed in X2Go Git. You can see the changelog below, and you can
check the diff of the fix at:

    http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=ccc1d4c

The issue will most likely be fixed in src:pyhoca-gui (0.5.0.0).

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
commit ccc1d4c3acc1dca6ccfed748c5cc0d1c3db04805
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date:   Sun Jul 6 20:59:40 2014 +0200

    Prepare for running against wxPython 3.0. More testing needed. (Fixes: #534).

diff --git a/debian/changelog b/debian/changelog
index 1a321a7..43c4e85 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -66,6 +66,8 @@ pyhoca-gui (0.5.0.0-0x2go1) UNRELEASED; urgency=low
       window. (Fixes: #507).
     - Make the published applications menu tree more robust against unknown
       icon image types.
+    - Prepare for running against wxPython 3.0. More testing needed. (Fixes:
+      #534).
   * debian/control:
     + Add D (bin:package pyhoca-gui): python-cups. (Fixes: #460).
 


Added tag(s) pending. Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Sun, 06 Jul 2014 19:00:02 GMT) (full text, mbox, link).


Marked as fixed in versions 0.5.0.0. Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Sun, 06 Jul 2014 19:00:02 GMT) (full text, mbox, link).


Message sent on to Michael DePaulo <mikedep333@gmail.com>:
Bug#534. (Sun, 06 Jul 2014 19:05:01 GMT) (full text, mbox, link).


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Sun, 06 Jul 2014 19:35:01 GMT) (full text, mbox, link).


Acknowledgement sent to Michael DePaulo <mikedep333@gmail.com>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sun, 06 Jul 2014 19:35:02 GMT) (full text, mbox, link).


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

From: Michael DePaulo <mikedep333@gmail.com>
To: 534@bugs.x2go.org
Subject: Thanks, that fixed it
Date: Sun, 6 Jul 2014 15:33:28 -0400
Thanks, that fixed it for me:

 mike@EXECUTOR:/c/x2gobuilds/pyhoca-gui :) [12] $ ./pyhoca-gui
--start-xserver --lang=en
c:\x2gobuilds\pyhoca-gui\pyhoca\wxgui\frontend.py:70:
wxPyDeprecationWarning: Call to deprecated item
'InitAllImageHandlers'.
  wx.InitAllImageHandlers()
### PyHoca-GUI running in development mode ###
pyhoca-gui[14304] (x2goclient-pylib) WARN: found a running (and maybe
stray) X-server, trying to re-use it on X DISPLAY port: localhost:40


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#534; Package pyhoca-gui. (Mon, 20 Oct 2014 10:55:34 GMT) (full text, mbox, link).


Acknowledgement sent to Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 20 Oct 2014 10:55:35 GMT) (full text, mbox, link).


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

From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 534-submitter@bugs.x2go.org
Cc: control@bugs.x2go.org, 534@bugs.x2go.org
Subject: X2Go issue (in src:pyhoca-gui) has been marked as closed
Date: Mon, 20 Oct 2014 12:54:44 +0200 (CEST)
close #534
thanks

Hello,

we are very hopeful that X2Go issue #534 reported by you
has been resolved in the new release (0.5.0.0) of the
X2Go source project »src:pyhoca-gui«.

You can view the complete changelog entry of src:pyhoca-gui (0.5.0.0)
below, and you can use the following link to view all the code changes
between this and the last release of src:pyhoca-gui.

    http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=457c1eff6ca84f56fe911851e5cb2cc66a9b6f75;hp=954e9b1019724590c343ccb95a33d3d83da9614e

If you feel that the issue has not been resolved satisfyingly, feel
free to reopen this bug report or submit a follow-up report with
further observations described based on the new released version
of src:pyhoca-gui.

Thanks a lot for contributing to X2Go!!!

light+love
X2Go Git Admin (on behalf of the sender of this mail)

---
X2Go Component: src:pyhoca-gui
Version: 0.5.0.0-0x2go1
Status: RELEASE
Date: Mon, 20 Oct 2014 12:51:05 +0200
Fixes: 19 394 460 507 533 534 548
Changes: 
 pyhoca-gui (0.5.0.0-0x2go1) RELEASED; urgency=low
 .
   [ Mike Gabriel ]
   * New upstream version (0.5.0.0):
     - (Now really) Support Python wxWidgets 3.0.
     - Add X2Go Session Broker support.
     - Adapt to new backend concept found in Python X2Go (>= 0.5.0.0).
     - Move most code of the pyhoca-gui executable into a dedicated class
       named PyHocaGUI_Launcher.
     - Allow automatic image branding (splash, about image, tray icon) by
       setting another application name than the default.
     - Rename icon files to match default application name (PyHoca-GUI).
     - Make default cmdline option parameters overridable before the
       arg parser gets initialized.
     - Make SCRIPT_NAME in setup.py configurable (monkey-patchable).
     - Make setup.py importable, only run setup() function on direct calls.
     - Don't refer to py2exe anymore in nsis_template's naming scheme.
     - Provide separate mswin_logging module.
     - Install more modules into setup.exe: hmac (for ecdsa).
     - NSIS script: empty installation destination before installing new files
       into $INSTDIR.
     - Allow appname based mini icons on About... windows.
     - Make the hover text of the tray icon brandable (drop hard-coded
       PyHoca-GUI application name).
     - NSIS script: make sure SetOutPath gets called at the beginning of
       every section.
     - Show printing preferences when tray icon is in restricted mode.
     - Session profile manager: the host parameter will be of type ListType
       for future versions of Python X2Go (>= 0.5.0.0).
     - Focus the user name field on logon if no user name is stored in the
       session profile.
     - Re-order cmdline sections (man page, defaults.py).
     - Optimize menu rendering. Reduce accessing session profile data as best
       as is possible.
     - Provide cmdline option --broker-cacertfile. Enable https:// connections
       with SSL certificates that have been self-signed against a non-public
       root-CA certificate file.
     - Handle "Connection refused" errors during broker login attempts.
     - Gracefully handle "Connection refused" errors after a broker login has
       already been successful.
     - Properly set focus in broker logon window (default: password, if no
       username
       provided: username, if no URL provided: broker-URL field).
     - Fix check_running() method in PyHocaGUI_Launcher on MS Windows.
     - Make broker support available for the MS Windows build of PyHoca-GUI.
     - Make check_running() test terminal server / multi-session safe.
       (Fixes: #19).
     - Windows PyHoca-GUI.log file: create with PID in file name. On log file
       creation try removing all old log files that are not still open.
     - Create Windows log file folder before attempting clean up (old log file
       removal).
     - Make sure new session profiles are mutable in the session profile manager
       GUI.
     - Gray-out Apply button in session profile GUI on profile creation.
     - Windows builder: Explicitly add the requests module to the set of
       bundled Python modules.
     - In session profile manager GUI: handle multiple clicks on the Apply button
       gracefully.
     - Notification about multiply started PyHoca-GUI instances. Don't hard code the
       application name.
     - Fix path name detection for default icons. (Fixes: #394).
     - Update English / German translation.
     - Add subsystem string support for HOOK_forward_tunnel_setup_failed hook.
     - Improve NX performance by reducing reactivity of wx widgets.
     - Grey-out all SSH related options for DirectRDP sessions.
     - Make the clipboard mode configurable through the session profile manager
       window. (Fixes: #507).
     - Make the published applications menu tree more robust against unknown
       icon image types.
     - Prepare for running against wxPython 3.0. More testing needed. (Fixes:
       #534).
     - Rename LICENSE.txt to COPYING.
     - Add Keywords= field to pyhoca-gui.desktop file.
     - Don't flood PyHocaGUI._eventid_(uns)hared_folders_map dict with
       non-valid-anymore event IDs.
     - pyhoca-gui.desktop: Set Categories: to Network;RemoteAccess;.
     - setup.py: Install .mo files into DESTDIR.
     - brokerlogin.py: Fix parameter error when evoking message box.
     - More reliably handle errors in a given --broker-url option value.
   * debian/control:
     + Add D (bin:package pyhoca-gui): python-cups. (Fixes: #460).
   * pyhoca-gui.spec:
     + Adapt to building on openSUSE/SLES.
     + openSUSE has python-notify whereas Fedora/RHEL has notify-python.
     + openSUSE (at least >= 12.3) has wxPython 2.9. So let's use it. (On openSUSE
       13.1, pyhoca-gui segfaults with wxPython 2.8).
     + Try to build the .po -> .mo files during package build.
     + Install locale files into bin:package.
     + No extra BR on gettext, intltool will pull it in anyway.
 .
   [ Mike DePaulo ]
   * New upstream version (0.5.0.0):
     - Windows: Set the pyhoca-gui icon on pyhoca-gui.exe (Fixes: #548)
       The icon will show up in Task Manager too.
     - Windows: Upgrade PulseAudio from 1.1 to 5.0-rev18 from OBS.
       Fixes choppy sound in Adobe Flash Player (Fixes: #533)
     - Windows: Upgrade from VcXsrv 1.14.2.0 to VcXsrv-xp 1.14.3.2
       Windows: Update nxproxy from 3.5.0.12 to 3.5.0.27
       (linked against latest cygwin packages as of 2014-06-09)
     - Windows: Update Python from an earlier version of 2.7.x to 2.7.8
     - Windows: Update wxPython from 2.9.x to 3.0.0.0
     - Windows: Updates/Upgrades to other libraries also
     - Windows: List as "PyHoca-GUI (A graphical X2Go client)"
       instead of "PyHoca-GUI" in add/remove programs
     - Windows: Use Unicode NSIS instead of regular NSIS.
       See x2goclient bug #528 for reasoning.
     - Windows: Reduce size of NSIS installer by switching to lzma solid compression
     - Windows: Numerous other improvements to NSIS installer.
       For example, in add/remove programs, add version string, icon, size, etc.
 .
   [ Daniel Lindgren ]
   * New upstream version (0.5.0.0):
     - Update Swedish translation file.
 .
   [ Ricardo Díaz Martín ]
   * New upstream version (0.5.0.0):
     - Update Spanish translation file (2x).
 .
   [ Martti Pitkänen ]
   * New upstream version (0.5.0.0):
     - Add Finnish translation file.
 .
   [ Jos Wolfram ]
   * New upstream version (0.5.0.0):
     - Update Dutch translation file.
 .
   [ Robert Parts ]
   * New upstream version (0.5.0.0):
     - Add Estonian translation file.
 .
   [ Klaus Ade Johnstad ]
   * New upstream version (0.5.0.0):
     - Update Bokmal (Norway) translation file.
 .
   * Translation status:
     + UNTRANSLATED - bg: 0 translated messages, 398 untranslated messages.
     + INCOMPLETE - da: 350 translated messages, 28 fuzzy translations, 20 untranslated
       messages.
     + OK - de: 398 translated messages.
     + OK - en: 398 translated messages.
     + OK - es: 398 translated messages.
     + INCOMPLETE - et: 366 translated messages, 32 untranslated messages.
     + UNTRANSLATED - fr: 0 translated messages, 398 untranslated messages.
     + BROKEN - fi: 0 translated messages, 188 fuzzy translations, 210 untranslated messages.
     + OK - nb_NO: 398 translated messages.
     + OK - nl: 398 translated messages.
     + INCOMPLETE - ru: 351 translated messages, 28 fuzzy translations, 19 untranslated
       messages.
     + OK - sv: 398 translated messages.


Marked Bug as done Request was from Mike Gabriel <mike.gabriel@das-netzwerkteam.de> to control@bugs.x2go.org. (Mon, 20 Oct 2014 10:55:39 GMT) (full text, mbox, link).


Notification sent to Michael DePaulo <mikedep333@gmail.com>:
Bug acknowledged by developer. (Mon, 20 Oct 2014 10:55:39 GMT) (full text, mbox, link).


Message sent on to Michael DePaulo <mikedep333@gmail.com>:
Bug#534. (Mon, 20 Oct 2014 10:55:49 GMT) (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.x2go.org> to internal_control@bugs.x2go.org. (Tue, 18 Nov 2014 06:24:02 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Oct 30 12:56:29 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.