Relative Content

Tag Archive for pythoncctypes

FileNotFoundError while attempting to load a DLL using Ctypes despite Dependency Walker not finding any missing dependencies

I’m using ctypes for the first the first time and thus was playing around with it before trying to actually implement it. However, I’m unable to load my compiled DLL using ctypes.CDLL() as it throws a FileNotFoundError. This is the complete error: FileNotFoundError: Could not find module 'E:absolutepathto.dll' (or one of its dependencies). Try using the full path with constructor syntax.. I am certain that the file exists at that location.