How to register an extension DLL with python 2.5?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boaz Feldbaum

    How to register an extension DLL with python 2.5?

    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.


  • Boaz Feldbaum

    #2
    Re: How to register an extension DLL with python 2.5?

    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@feldbaum. namewrote in message
    news:g5pvco$j4c $1@news4.netvis ion.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.
    >

    Comment

    Working...