[wxPython] import wxc error

Hi,

I try to use wxPython in a C++ program that embeds Python.

a small python script works when run by python.exe but the wxPython import

fails when run by the embedded python. I think both are python 2.0 .

Anyone know whta else might be causing this?

  • Eric

P.S. It seems as if the wx.py and wxc.pyd are found

···

Traceback (most recent call last):

File “”, line 1, in ?

File “C:/PROJECTS/TIGERVR/Assets/Common/Scripts\TestUI_.py”, line 1, in ?

from wxPython.wx import *

File “c:\python20\wxPython_init_.py”, line 20, in ?

import wxc

ImportError: DLL load failed: The specified procedure could not be found.

I try to use wxPython in a C++ program that embeds Python.
a small python script works when run by python.exe but the wxPython import
fails when run by the embedded python. I think both are python 2.0 .
Anyone know whta else might be causing this?

TO be sure run your program under DependencyWalker
(http://www.dependencywalker.com/) and see what is being loaded from where.
My guess is that wxc.pyd isn't able to load the wxwindows DLL for some
reason. Does your app link with the same wx DLL that wxPython does?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!