[SciPy-user] SciPy and gui_thread()

Zhiwen Chong zhiwen.chong at elf.mcgill.ca
Fri Jun 17 15:08:25 EDT 2005


Hello everyone,

I was trying to do a bit of plotting but was stymied by this:

     >>> 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'>
     >>>

I did a search on Google but did not find much:
http://tinyurl.com/dmqep

I suspect the problem might be wxPython, because when I tried this:

     >>> from wxPython.wx import *
     Traceback (most recent call last):
       File "<stdin>", line 1, in ?
       File "//Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/wx-2.6-mac-unicode/wxPython/__init__.py",  
line 10, in ?
         import _wx
       File "//Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/wx-2.6-mac-unicode/wxPython/_wx.py", line 3,  
in ?
             from _core import *
       File "//Library/Frameworks/Python.framework/Versions/2.4/lib/ 
python2.4/site-packages/wx-2.6-mac-unicode/wxPython/_core.py", line  
15, in ?
         import wx._core
     ImportError: No module named _core

But the dashed odd thing is, applications like Boa Constructor and  
others which rely on wxPython work fine.

I have Python 2.4.1, wxPython 2.6.1 and Mac OS X 10.4.1. I've applied  
the TigerPython24Fix and TigerPython23Compat (which I don't think is  
necessary, but anyway....) patches.

I'm not extremely familiar with the gui_thread() package, so I'd  
appreciate any help on this!


Zhiwen Chong
--------------------------------
McMaster Advanced Control Consortium
Dept. of Chemical Engineering
McMaster University
Hamilton ON  L8S 4L7
Tel:   (905) 525-9140  Ext. 22008
FAX: (905) 521-1350
macc.mcmaster.ca
--------------------------------





More information about the SciPy-User mailing list