Running a SWIG-related Python + C program gives a missing DLL error when working on another computer

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?

+3
source share
1 answer

Anyone who has this problem should probably check the dependent walker and see which dlls are missing. He solved my problem.

+4
source

Source: https://habr.com/ru/post/1785270/


All Articles