[New-bugs-announce] [issue43173] Python Windows DLL search paths

Jeff Moguillansky report at bugs.python.org
Mon Feb 8 21:45:38 EST 2021


New submission from Jeff Moguillansky <jmoguill2 at gmail.com>:

Hi,
What's the correct way to set the DLL search path when running a python script?

It seems that it doesn't search the directories specified in PATH environment variable. 

FYI: For debugging the DLL loading issues, I'm using "Process Monitor" from sysinternals:
https://docs.microsoft.com/en-us/sysinternals/downloads/procmon,
but please share any tips if you have a better approach.

Also, the Python error message is not very informative:
when loading a python module (built using Cython), if it fails to load a specific DLL, it says 
"import module <module name> failed, DLL not found" but it doesn't say the name of the actual DLL that is not found.
It would be helpful if it listed the actual name of the DLL that it cannot find.

----------
components: Windows
messages: 386688
nosy: jmoguill2, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Python Windows DLL search paths
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43173>
_______________________________________


More information about the New-bugs-announce mailing list