I'm doing some work on a Python debugger, written in C++. I've built a
debug version of python, but when my program imports wx I get an error:
Traceback (most recent call last):
File "ClientApp.py", line 33, in ?
import ClientFrame # main frame
File "D:\abling\source_cvs\abling\system\client\ClientFrame.py", line
86, in ?
from wxPython.wx import * # wx
File "C:\wx\Python23\Lib\site-packages\wxPython\__init__.py", line 10,
in ?
import _wx
File "C:\wx\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
from core import *
File "C:\wx\Python23\Lib\site-packages\wxPython\core.py", line 15, in ?
import wx.core
File "C:\wx\Python23\Lib\site-packages\wx\__init__.py", line 19, in ?
from wx.core import *
File "C:\wx\Python23\Lib\site-packages\wx\core.py", line 4, in ?
import _core
ImportError: No module named _core
There is a _core.pyd module installed. My best guess is that I need to
follow the instructions at http://www.wxpython.org/BUILD.html to build a
debug version of wxPython. Is that correct?
I'm doing some work on a Python debugger, written in C++. I've built a debug version of python, but when my program imports wx I get an error:
Traceback (most recent call last):
File "ClientApp.py", line 33, in ?
import ClientFrame # main frame
File "D:\abling\source_cvs\abling\system\client\ClientFrame.py", line 86, in ?
from wxPython.wx import * # wx
File "C:\wx\Python23\Lib\site-packages\wxPython\__init__.py", line 10, in ?
import _wx
File "C:\wx\Python23\Lib\site-packages\wxPython\_wx.py", line 3, in ?
from core import *
File "C:\wx\Python23\Lib\site-packages\wxPython\core.py", line 15, in ?
import wx.core
File "C:\wx\Python23\Lib\site-packages\wx\__init__.py", line 19, in ?
from wx.core import *
File "C:\wx\Python23\Lib\site-packages\wx\core.py", line 4, in ?
import _core
ImportError: No module named _core
On Windows Python links with a different C Runtime Lib when built in debug mode (controled by pragma's in the headers) and so it needs to use extension modules that are linked the same way.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
On Windows Python links with a different C Runtime Lib when built in
debug mode (controled by pragma's in the headers) and so it needs to
use extension modules that are linked the same way.
Thanks.
By the way, the format of the Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub file is
slightly incorrect when it comes to showing folders. It misses out the
slashes, compared to the build.txt file (I found it in the wxPython
installation).
On Windows Python links with a different C Runtime Lib when built in debug mode (controled by pragma's in the headers) and so it needs to use extension modules that are linked the same way.
Thanks.
By the way, the format of the Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub file is slightly incorrect when it comes to showing folders. It misses out the slashes, compared to the build.txt file (I found it in the wxPython installation).
Yep. I've already corrected that in CVS. (ReST needs the backslashes to be doubled.)
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!