How to register an extension DLL with python 2.5?

Boaz Feldbaum boaz at
Fri Jul 18 15:14:27 CEST 2008

OK, found it! I just had to give my dll a new file extension: PYD, that is 
rename it from foo.dll to foo.pyd

"Boaz Feldbaum" <boaz at> wrote in message 
news:g5pvco$j4c$1 at
> Hello all,
> I wrote an extension dll in C++ using VS2005 to be used in windows 
> platform. In pyhon 2.4 I used to copy my dll to the dlls sub-directory of 
> python installation and import my dll and it worked fine. This doesn't 
> work with python 2.5. I get the following when trying to import my dll:
>>>> import pywutil
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: No module named pywutil
> What should I do in 2.5 to be able to import my extension dll?
> Thanks a lot in advance,
> Boaz.

More information about the Python-list mailing list