By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,977 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

How to register an extension DLL with python 2.5?

P: n/a
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.
Jul 18 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <bo**@feldbaum.namewrote in message
news:g5**********@news4.netvision.net.il...
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.

Jul 18 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.