New submission from Jeff Moguillansky <jmogui...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to