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 pombredanne
Recipients The Compiler, eryksun, never-eat-yellow-snow, paul.moore, pombredanne, steve.dower, tim.golden, zach.ware
Date 2020-09-23.07:37:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600846662.69.0.874397438169.issue25655@roundup.psfhosted.org>
In-reply-to
Content
> I wouldn't refuse a docs PR to add a short section pointing to
> this page and explaining its relevance: 
> https://docs.microsoft.com/cpp/build/reference/dependents

Steve,
would you see this as a note in https://docs.python.org/3/library/ctypes.html?highlight=ctypes#loading-shared-libraries

What about something like this?

class ctypes.CDLL
.....

Note: On Windows a call to CDLL(name) may fail even if the DLL name exists when a dependent DLL of this DLL is found. This will lead to an OSErrror error with the message "[WinError 126] The specified module could not be found".

This error message does not contains the name of the missing DLL because the Windows API does not return this information making this error hard to diagnose.

To resolve this error and determine which DLL is missing, you need to find the list of dependent DLLs using Windows debugging and tracing tools.

See https://docs.microsoft.com/cpp/build/reference/dependents for some explanations.
History
Date User Action Args
2020-09-23 07:37:42pombredannesetrecipients: + pombredanne, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, The Compiler, never-eat-yellow-snow
2020-09-23 07:37:42pombredannesetmessageid: <1600846662.69.0.874397438169.issue25655@roundup.psfhosted.org>
2020-09-23 07:37:42pombredannelinkissue25655 messages
2020-09-23 07:37:42pombredannecreate