470,599 Members | 1,445 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,599 developers. It's quick & easy.

can't load a dll in python 2.5

Hello,

I am on WindowsXP. I have a dll that I can load in python 2.3 but
when trying to load it into python 2.5 it complains that there is
nothing by that name. Is there some aspect of the dll loading
mechanism between python 2.3 and 2.5 that has changed preventing me
from loading the dll in 2.5? Thanks in advance for your suggestions.

Daniel

Feb 16 '07 #1
2 1464
dw********@gmail.com wrote:
I am on WindowsXP. I have a dll that I can load in python 2.3 but
when trying to load it into python 2.5 it complains that there is
nothing by that name. Is there some aspect of the dll loading
mechanism between python 2.3 and 2.5 that has changed preventing me
from loading the dll in 2.5? Thanks in advance for your suggestions.
Don't know if this is your problem, but as of Python 2.5, ".dll is no
longer supported as a filename extension for extension modules. .pyd is
now the only filename extension that will be searched for". (That's the
last line on http://docs.python.org/whatsnew/ports.html)

HTH,

STeVe
Feb 16 '07 #2
En Fri, 16 Feb 2007 18:11:53 -0300, Steven Bethard
<st************@gmail.comescribió:
dw********@gmail.com wrote:
>I am on WindowsXP. I have a dll that I can load in python 2.3 but
when trying to load it into python 2.5 it complains that there is
nothing by that name. Is there some aspect of the dll loading
mechanism between python 2.3 and 2.5 that has changed preventing me
from loading the dll in 2.5? Thanks in advance for your suggestions.

Don't know if this is your problem, but as of Python 2.5, ".dll is no
longer supported as a filename extension for extension modules. .pyd is
now the only filename extension that will be searched for". (That's the
last line on http://docs.python.org/whatsnew/ports.html)
And remember that extensions must be recompiled for the specific Python
version in use (up to the second digit). That is, if you have an extension
for Python 2.3, it won't work for 2.5.

--
Gabriel Genellina

Feb 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Alexandre Fayolle | last post: by
reply views Thread by Link | last post: by
1 post views Thread by Ajay Bakhshi | last post: by
1 post views Thread by jmdeschamps | last post: by
reply views Thread by Charles Hartman | last post: by
28 posts views Thread by Grant Edwards | last post: by
5 posts views Thread by kk | last post: by
reply views Thread by bbansi_1982 | last post: by
5 posts views Thread by boblatest | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.