[X2Go-Dev] Bug#534: Windows: PyHoca-GUI fails to start (ImportError: No module named wx)

Michael DePaulo mikedep333 at gmail.com
Sat Jul 5 15:46:24 CEST 2014


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 at EXECUTOR:/c/x2gobuilds/pyhoca-gui :) [95] $ which python
/c/Python27/python
 mike at EXECUTOR:/c/x2gobuilds/pyhoca-gui :) [96] $ python --version
Python 2.7.8
 mike at 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 at 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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pyhoca-gui-windows-startup.patch
Type: application/octet-stream
Size: 296 bytes
Desc: not available
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20140705/a822a529/attachment.obj>


More information about the x2go-dev mailing list