Message379307
Steve, the PR that you pushed has the wrong error and error message. I told Philippe in msg377335 that ctypes raises FileNotFoundError with no error code. For example:
>>> try: ctypes.CDLL('spam')
... except OSError as e: err = e
...
>>> err
FileNotFoundError("Could not find module 'spam' (or one of its dependencies). Try using the full path with constructor syntax.")
>>> err.winerror is None
True
The advice to use dumpbin is fine and works well in simple cases. I wouldn't use it generally since recursiveley parsing through the dependency graph of every dependent DLL could be tedious. |
|
Date |
User |
Action |
Args |
2020-10-22 15:50:30 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, The Compiler, pombredanne, never-eat-yellow-snow, miss-islington |
2020-10-22 15:50:30 | eryksun | set | messageid: <1603381830.44.0.448855283923.issue25655@roundup.psfhosted.org> |
2020-10-22 15:50:30 | eryksun | link | issue25655 messages |
2020-10-22 15:50:30 | eryksun | create | |
|