[SciPy-user] gui_thread error

Vlado Balko vbalko at gmail.com
Wed Oct 19 12:15:07 CDT 2005


Hello,

I installed SciPy 0.3.2 on Python 2.4 from binaries compiled for 2.4 (I 
found it here in mailing list). Then I installed wxPython 2.6.1.0 unicode

But when I tried to run this code:

# set up graphics capabilities and import scipy into the workspace
import gui_thread
gui_thread.start()
from scipy import *
# create the curve values.
a = arange(pi,2*pi,.01)
b = sin(a)
# also find find the function minimum on the same range
x = optimize.fminbound(sin,pi,2*pi)
plt.plot(a,b,'-');
plt.hold('on');
plt.plot([x],[sin(x)],'ro');
plt.yaxis([-1.5,0]);

I get this error
Traceback (most recent call last):
  File 
"F:\Aplikacie\@@Editory@@\Eclipse\eclipse302\workspace\Skusky\scipy1.py", 
line 3, in ?
    gui_thread.start()
  File "E:\Program 
Files\Python\Lib\site-packages\gui_thread\__init__.py", line 73, in start
    wxPython_thread()
  File "E:\Program 
Files\Python\Lib\site-packages\gui_thread\wxPython_thread.py", line 160, 
in wxPython_thread
    sys.modules[name] = wrap_extmodule(module,call_holder)
  File "E:\Program 
Files\Python\Lib\site-packages\gui_thread\wxPython_thread.py", line 61, 
in wrap_extmodule
    raise NotImplementedError,`t`
NotImplementedError: <type 'PyCObject'>

then I tried to run test script on gui_thread

Python\Lib\site-packages\gui_thread\tests>test_gui_thread.py  --- from 
standard install

i get:
Traceback (most recent call last):
  File "E:\Program 
Files\Python\Lib\site-packages\gui_thread\tests\test_gui_thre
ad.py", line 349, in ?
    if not threaded():
  File "E:\Program 
Files\Python\Lib\site-packages\gui_thread\tests\test_gui_thre
ad.py", line 29, in threaded
    return gui_thread.main.running_in_second_thread
AttributeError: 'module' object has no attribute 'main'

What does it mean? Where is the fault?

Balky



More information about the SciPy-user mailing list