This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients amaury.forgeotdarc, brian.curtin, cgohlke, eric.snow, eryksun, georg.brandl, iritkatriel, kristjan.jonsson, loewis, ncoghlan, piotr.dobrogost, python-dev, techtonik
Date 2020-11-17.01:22:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> The patch adding 'name' and 'path' to the ImportError str/repr 
> was not merged yet.

It's up to whatever code raises an ImportError to determine how the name and path should be included in the error message. In Windows, the DLL name was added to the exception message in 3.8. So I'm closing this issue again, with regard to its final scope. 

With regard to its original scope, the reason for closing is "wont fix". There are no plans to extend the import error of an extension module in Windows to include the missing DLL dependency that caused the import to fail. There are tools such as the "DLL Diagnostics" package on PyPI that implement a proper trace by parsing loader snaps, and at the very least there are tools such as dumpbin.exe (or link.exe /dump) to manually list the direct dependencies of a DLL.
Date User Action Args
2020-11-17 01:22:59eryksunsetrecipients: + eryksun, loewis, georg.brandl, amaury.forgeotdarc, ncoghlan, kristjan.jonsson, techtonik, brian.curtin, cgohlke, python-dev, eric.snow, piotr.dobrogost, iritkatriel
2020-11-17 01:22:59eryksunsetmessageid: <>
2020-11-17 01:22:59eryksunlinkissue10854 messages
2020-11-17 01:22:58eryksuncreate