[SciPy-user] gui_thread trouble

Brice Thurin B.P.S.Thurin at city.ac.uk
Wed Jun 8 08:47:46 CDT 2005


Hello,

I have just finished installing scipy and I am trying to run the demo,  
unfortunately it doesn't work.
I have got macpython2.4 installed on panther. I have been trying with  
several version of Numeric and apparentely wxPython is working  
properly, I executed the demo samples without trouble. I have been  
trying to launch the following command
 >>> import gui_thread
 >>> gui_thread.start()
with IDLE, python IDE, PYcrust and the terminal and I always get the  
same problem:

error message with pycrust:

import gui_thread
numerix Numeric 24.0b2
gui_thread.start()
Traceback (most recent call last):
   File "<input>", line 1, in ?
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/__init__.py", line 73, in start
     wxPython_thread()
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/wxPython_thread.py", line 156, in wxPython_thread
     for name in get_extmodules(pexec):
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/wxPython_thread.py", line 25, in get_extmodules
     _do_import(pexec)
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/wxPython_thread.py", line 104, in _do_import
     assert not sys.modules.has_key('wx'), \
AssertionError: wx is already imported, cannot proceed

error message with terminal

[optopc186:~/desktop/Numeric-24.0b2] bricethu% python2.4
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numeric
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named numeric
 >>> import Numeric
 >>>
[optopc186:~/desktop/Numeric-24.0b2] bricethu% python2.4
Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import gui_thread
numerix Numeric 24.0b2
 >>> gui_thread.start()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/__init__.py", line 73, in start
     wxPython_thread()
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/wxPython_thread.py", line 160, in wxPython_thread
     sys.modules[name] = wrap_extmodule(module,call_holder)
   File  
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- 
packages/gui_thread/wxPython_thread.py", line 61, in wrap_extmodule
     raise NotImplementedError,`t`
NotImplementedError: <type 'PyCObject'>

Many thanks for anyhelp


Brice


Brice Thurin

Department of Optometry and Visual Science
City University, Northampton Square
London, EC1V 0HB, UK.
http://www.city.ac.uk/optometry/Luis/myresearch/Research/ 
scatteringproper.html
http://www.sharpeye.org/

Tel: +44 (0)20 7040 4157
Fax: +44(0)20 7040 8355
e-mail: B.P.S.Thurin at city.ac.uk



More information about the SciPy-user mailing list