[New-bugs-announce] [issue39393] Misleading error message upon dependent DLL resolution failure
report at bugs.python.org
Mon Jan 20 04:27:30 EST 2020
New submission from plimkilde <peter.limkilde at gmail.com>:
Under Windows with Python 3.8+, trying to load a DLL whose dependencies cannot be resolved may produce a misleading error message.
For example, if we are trying to load a library foo.dll that depends on bar.dll, and bar.dll cannot be resolved while foo.dll itself can, Python gives this error message:
"FileNotFoundError: Could not find module 'foo.dll'. Try using the full path with constructor syntax."
(behavior introduced with PR #12302)
Personally, I'd be happy to see a fix that simply adds " (or one of its dependencies)" to the error message.
components: Windows, ctypes
nosy: paul.moore, plimkilde, steve.dower, tim.golden, zach.ware
title: Misleading error message upon dependent DLL resolution failure
versions: Python 3.8, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce