[SciPy-dev] gui_thread and wxPython-2.5.2.8

Pearu Peterson pearu at scipy.org
Fri Oct 1 15:53:00 CDT 2004



On Fri, 1 Oct 2004, Fernando Perez wrote:

>> I think I'll check in my changes in a little while.  Please do test it
>> out and let me know if there are problems.  I'm particularly
>> interested in other platforms, Windows, Mac and also wxPython-2.4.x.
>> 
>> Here is a simple test you can run:
>> 
>> import gui_thread
>> gui_thread.start()
>
> Is there any reason the gui_thread module can't just call start() itself upon 
> import?  Are there valid situations where one may want to delay this call?
>
>> from gui_thread.examples import SimpleFrame
>> a = SimpleFrame()
>> a.Show()
>> a.SetTitle('Hey! this works!')
>
> Unfortunately it doesn't work with 2.4:
>
> In [2]: wx.VERSION
> Out[2]: (2, 4, 2, 4, 'u')
>
> New session:
>
> In [1]: import gui_thread
>
> In [2]: gui_thread.start()
> Traceback (most recent call last):
>  File "scipy_base/pexec.py", line 56, in run
>    exec (code, frame.f_globals,frame.f_locals)
>  File "<string>", line 3, in ?
> ImportError: /usr/lib/python2.3/site-packages/wx/_core_.so: cannot open 
> shared object file: No such file or directory

I got the same error and the fix is soon in CVS..

Pearu




More information about the Scipy-dev mailing list