J
jrh
Hello,
From previous posts and documentation it seems python should be able
to import a module that is compiled into a .dll just as well as
a .pyd. I have a pyd that works fine, but after renaming it to dll the
import fails. Running python with -vv flag indicates it doesn't
actually look for the dll (see below). Has dll import been defeatured
in python?
Thanks!
# trying _mydllpythonmodule.pyd
# trying _mydllpythonmodule.py
# trying _mydllpythonmodule.pyw
# trying _mydllpythonmodule.pyc
# trying C:\Python25\DLLs\_mydllpythonmodule.pyd
# trying C:\Python25\DLLs\_mydllpythonmodule.py
# trying C:\Python25\DLLs\_mydllpythonmodule.pyw
# trying C:\Python25\DLLs\_mydllpythonmodule.pyc
# trying C:\Python25\lib\_mydllpythonmodule.pyd
# trying C:\Python25\lib\_mydllpythonmodule.py
# trying C:\Python25\lib\_mydllpythonmodule.pyw
# trying C:\Python25\lib\_mydllpythonmodule.pyc
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyd
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.py
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyw
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyc
# trying C:\Python25\_mydllpythonmodule.pyd
# trying C:\Python25\_mydllpythonmodule.py
# trying C:\Python25\_mydllpythonmodule.pyw
# trying C:\Python25\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\win32\lib\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\Pythonwin\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyc
Traceback (most recent call last):
From previous posts and documentation it seems python should be able
to import a module that is compiled into a .dll just as well as
a .pyd. I have a pyd that works fine, but after renaming it to dll the
import fails. Running python with -vv flag indicates it doesn't
actually look for the dll (see below). Has dll import been defeatured
in python?
Thanks!
# trying _mydllpythonmodule.pyd
# trying _mydllpythonmodule.py
# trying _mydllpythonmodule.pyw
# trying _mydllpythonmodule.pyc
# trying C:\Python25\DLLs\_mydllpythonmodule.pyd
# trying C:\Python25\DLLs\_mydllpythonmodule.py
# trying C:\Python25\DLLs\_mydllpythonmodule.pyw
# trying C:\Python25\DLLs\_mydllpythonmodule.pyc
# trying C:\Python25\lib\_mydllpythonmodule.pyd
# trying C:\Python25\lib\_mydllpythonmodule.py
# trying C:\Python25\lib\_mydllpythonmodule.pyw
# trying C:\Python25\lib\_mydllpythonmodule.pyc
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyd
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.py
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyw
# trying C:\Python25\lib\lib-tk\_mydllpythonmodule.pyc
# trying C:\Python25\_mydllpythonmodule.pyd
# trying C:\Python25\_mydllpythonmodule.py
# trying C:\Python25\_mydllpythonmodule.pyw
# trying C:\Python25\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\win32\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\win32\lib\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\win32\lib
\_mydllpythonmodule.pyc
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyd
# trying C:\Python25\lib\site-packages\Pythonwin\_mydllpythonmodule.py
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyw
# trying C:\Python25\lib\site-packages\Pythonwin
\_mydllpythonmodule.pyc
Traceback (most recent call last):