Reputation: 137
I have 2 external libraries in the same folder and I want to import them into the Python. (i.e. "vtkCommonPython" and "vtkFilteringPython") and both of them have .pyd and .dll files. (vtkCommonPython.pyd and vtkCommonPythonD.dll and same for other one)
Despite they are in same folder when I write down
import vtkCommonPython
it is fine, however when I want to import other one
import vtkFilteringPython
ImportError: DLL load failed: The specified procedure could not be found.
I tried also to find from where first library is loaded using
vtkCommonPython.__file__
And it was the same folder for the other one.
How I can trace the problem and find problem's source.
Thanks
Upvotes: 1
Views: 2154
Reputation: 156158
Try using the -v
option to the python interpreter:
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)
as in:
python -v myscript.py
Upvotes: 3