So, I put together a small testing program that uses SWIG as a bridge between python and C. The main part of the program is a python file. The thing works fine on my own computer, but as soon as I transfer it to another, it immediately throws "Import failed with ImportError: DLL: the specified module could not be found." error. I tried to figure out if this could be the location of a file that was statically encoded by moving it to another directory on my own computer, which was still working fine. Then I did some debugging in the python SWIG shell and figured out which DLL it loaded; whose path to the file was correct. My other PC had the right path. Does anyone know something that I may have forgotten is causing this error?
source
share