Need help with extension modules built in debug mode

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Wed Aug 27 05:31:37 CEST 2008


En Tue, 26 Aug 2008 01:11:10 -0300, <bhood2 at comcast.net> escribi�:

> I've come to the conclusion that posting about Embedded Python on the
> Python forums is a complete waste of time.  I hope I can get some
> useful insights here.
>
> I'm looking for some help with extension modules built using Visual
> Studio. I'm using the simple extension module example "hello" (taken
> from the "Programming Python" book). I'm building it successfully in
> both release and debug mode using a Visual Studio project.
>
> I can successfully import the release build of the module into the
> release build of Python.  For example:
>
>     [E:\]python
>     Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
> (Intel)] on win
>     32
>     Type "help", "copyright", "credits" or "license" for more
> information.
>     >>> import hello
>     >>> hello.message("Bob")
>     'Hello, Bob'
>     >>> quit()
>
>
> I cannot, however, load the debug build of the exact same code (stored
> in the exact same location) into the debug build of Python:
>
>
> Does anybody know what tricks or coding magic might be required to get
> debug extension modules to load into debug Python?

In debug mode, python looks for hello_d.pyd - NOT hello.pyd.
Note that neither hello.dll nor hello_d.dll are recognized anymore since  
version 2.5

-- 
Gabriel Genellina




More information about the Python-list mailing list