When I run my program (using visual studio code) in debug mode I get the above mentioned error.
PyQt4 Error ValueError: PyCapsule_GetPointer called with incorrect name
However when I run the code without debugging, also via visual studio code Everything works fine.
When I googled I found this question but there is no mention of debug vs normal mode and therefore I do not directly see the connection.
I use anaconda to control my environments.