python script and C dll in debug mode

Ngoc edo4 at emich.edu
Wed Feb 19 14:40:21 EST 2003


"David LeBlanc" <whisper at oz.net> wrote in message news:<mailman.1045598933.18929.python-list at python.org>...
> > I attempt to run Python script (pyScript.py) which will import a
> > myModule.dll written in C.
> > If myModule.dll is in release mode, the program will run fine.
> > If myModule.dll is in debug mode, I get the import module not found
> > error message.
> > In the DOS command, I run >> python_d pyScript.py
> > I get "Exception import No module name myModule" message.
> > Is there something I am missing here.
> >
> > Thanks in advance
> > Ngoc
> 
> Possibly you're trying to mix debug and release versions of dlls or
> runtimes? That sometimes works, except when it doesn't. Are your paths set
> up to ensure that you only rund debug with debug and release with release
> binaries?
> 
> Dave LeBlanc
> Seattle, WA USA

Yes, I run only debug with debug. I also rename dll to
"MyModule_d.dll" and import MyModule_d python script.  The problem
still exits.
Ngoc




More information about the Python-list mailing list