Iron Python error when importing wx

I’m getting the following error with Iron Python 2.7.3 and wxPython2.8-win64-unicode-2.8.12.1-py27

import wx
Traceback (most recent call last):
File “”, line 1, in
File “E:\Program Files (x86)\IronPython 2.7\lib\site-packages\wx-2.8-msw-unicode\wx_init_.py”, line 45, in
File “E:\Program Files (x86)\IronPython 2.7\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 4, in
ImportError: No module named core

I’ve no idea how to fix it though, any help would be appreciated.

unless someone has done a lot of work, wx is not expected to work with
Iron Python -- it's very much tied to CPython.

I suspect you are stuck with .net GUI toolkits for IronPython,
probably only the MS one -- though maybe GTK with mono....

-Chris

···

On Mon, Jul 22, 2013 at 1:47 AM, robert26535 <robert26535@gmail.com> wrote:

I'm getting the following error with Iron Python 2.7.3 and
wxPython2.8-win64-unicode-2.8.12.1-py27

import wx

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\Program Files (x86)\IronPython
2.7\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in
<module>
  File "E:\Program Files (x86)\IronPython
2.7\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in <module>
ImportError: No module named _core_

I've no idea how to fix it though, any help would be appreciated.

--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

robert26535 wrote:

I'm getting the following error with Iron Python 2.7.3 and
wxPython2.8-win64-unicode-2.8.12.1-py27

>> import wx

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\Program Files (x86)\IronPython
2.7\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in
<module>
File "E:\Program Files (x86)\IronPython
2.7\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in <module>
ImportError: No module named _core_

>>

I've no idea how to fix it though, any help would be appreciated.

IronPython runs in the .NET environment and imports are expected to be either Python code or .NET assemblies.

OTOH, wxPython is written for CPython and the _core_ module is compiled C code packaged as a DLL. Very different.

···

--
Robin Dunn
Software Craftsman