python script and C dll in debug mode

David LeBlanc whisper at oz.net
Tue Feb 18 15:07:19 EST 2003


> 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






More information about the Python-list mailing list