.pyd not found when I compile and execute debug.

spambegone at sbcglobal.net spambegone at sbcglobal.net
Mon Dec 30 13:46:36 EST 2002


I WAS missing something obvious. 
(or at least obvious to someone who has built and run debug modules
before, which doesn't include me.)

A debug module needs to be named   *_d.pyd (in win32)

Is there a better forum for questions of this sort?

Dennis

On Sun, 22 Dec 2002 05:04:24 GMT, spambegone at sbcglobal.net wrote:

>Python version 2.2.2
>
>I am using MSVC 7.0 (aka .NET).
>
>I have a folder <python>\lib\site-packages\cg
>
>in that folder I have a file __init__.py, and a file cgp.pyd.
>
>__init.py__:
><snip>
>
>	# import cgp.pyd
>	import cgp
>
><end snip>
>
>when I compile release, link cgp.pyd to python22.lib and run
><python>\PCbuild\python.exe, cgp initializes w/o any problem.
>
>whwn I compile debug, link cgp.pyd to python_d.lib and run
><python>\PCbuild\python_d.exe, I get the following:
>
>ImportError: No module named cgp
>
>I've been beating my head against this for a while, and I wonder if
>I'm missing something obvious.
>
>Dennis
>




More information about the Python-list mailing list