The wxPython setup on Windows XP seemed to go smoothly
(http://downloads.sourceforge.net/wxpython/wxPython2.8-win32-unicode-2.8.12.1-p
y27.exe from http://www.wxpython.org/download.php).  This is on Python 2.7
because there isn't a version of wxPython for Python 3.2 yet.

 

Running a little test...

 

import wx

 

app   = wx.App(False)                                 # Create a new app, don't
redirect stdout/stderr to a window.

frame = wx.Frame(None, wx.ID_ANY, "Hello World")      # A Frame is a top-level
window.

frame.Show(True)                                      # Show the frame.

app.MainLoop()

 

...resulted in this error and there were a lot of people on the web asking
about the same thing, mostly without answers.

 

Traceback (most recent call last):

  File "C:\foo\wxpython1.py", line 12, in <module>

    import wx

  File "C:\Documents and Settings\garyha\Application
Data\Python\Python27\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45,
in <module>

    from wx._core import *

  File "C:\Documents and Settings\garyha\Application
Data\Python\Python27\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in
<module>

    import _core_

ImportError: DLL load failed: The specified module could not be found.

 

My question was going to be how to fix that.  However, we eventually found a
webpage where someone said to point Dependency Walker at _core.pyd to find out
which DLL's it would complain were missing, then drop those into the \wx
folder.  On my system it was these:

 

bcrypt.dll

gdiplus.dll

ieshims.dll

msvcp90.dll

msvcr90.dll

ncrypt.dll

wer.dll

 

On my friend/associate's Windows 7 box the list was not the same.

 

Then, just placing the DLL's (some rounded up locally from various directories
and some that had to be downloaded from the web) was not enough, we also had to
manually create/set the PythonPath environment variable.  I'm new to Python and
was thinking, wow.  (I'll spare you the snarky side of my thoughts about it,
mostly).  Good thing we are doggedly persistent, wonder what normal people do,
har har.

 

Anyway, so I guess this transforms from a question into that tip.  The Hello
World app works now.

 

Thanks,

 

Gary

 

> -----Original Message-----

> From: [email protected] [mailto:seattle-python-

> [email protected]] On Behalf Of Chris Barker

> Sent: Saturday, August 13, 2011 8:35 AM

> To: Seattle Python Interest Group

> Subject: Re: [SEAPY] wxPython

> 

> On 8/13/2011 1:34 AM, Gary Hawkins wrote:

> > Would it be ok if I ask a technical question to you folks here about

> > wxPython?

> >

> 

> you can ask anything about Python here, and sometimes we're even

> helpful!(I'm a pretty heavy wxPython user)

> 

> Though the wxPython-users list will get a bigger knowledgeable audience.

> 

> -Chris

> 

> 

> 

> --

> Christopher Barker, Ph.D.

> Oceanographer

> 

> Emergency Response Division

> NOAA/NOS/OR&R            (206) 526-6959   voice

> 7600 Sand Point Way NE   (206) 526-6329   fax

> Seattle, WA  98115       (206) 526-6317   main reception

> 

> [email protected]

Reply via email to