ImportError: DLL load failed while importing callCPPFunction: The specified module could not be found. #5144
Unanswered
satyajitkulkarni001
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Everone,
I have project in cpp which I am using in python for test automation.
I am facing issue for 3.11.7 when I convert cpp project files to pyd using pybind11 and cmake latest versions.
If I compile same code using 3.7.3 using latest version of pybind11 and cmake, it works fine while importing and call all methods correctly and executes correctly also.
But problem comes with 3.11.7 version of python.
I get below error
ImportError: DLL load failed while importing callCPPFunction: The specified module could not be found.
Pyd file is callCPPFunction.cp311-win_amd64.pyd
Could you suggest solution for this ?
Pyd file is place in same directory of python code for both 3.7.3 and 3.11.7
But not working for 3.11.7 and works for 3.7.3.
I have created pyd file using same versions that are there on machine.
For 3.7.3 I created pyd using same version and same for 3.11.7 also used 3.11.7 for creating pyd file
Beta Was this translation helpful? Give feedback.
All reactions