Skip to content
Advertisement

Tag: visual-studio

How to debug crashing C++ library loaded in python project

I am attempting to figure out why calling a function in a dynamically loaded lib crashes python. I’m doing the following, I have a C++ function in a dynamic library file, which is loaded in python using ctypes. I then call the function from python: On MacOS, this works exactly as expected. Unfortunately on Windows 11, it does not. I’m

Import “cv2” could not be resolved

I’ve installed python and opencv by using the correct commands in the cmd, but when I type in ‘import cv2’ in a python then I get the error in visual studio code and I can’t find any solution online how to fix this More of the error in the terminal Answer I noticed that Visual Studio does not support the

Advertisement