1

When getting a pointer to the sip API:

sip_API = reinterpret_cast<const sipAPIDef*>(
    PyCapsule_Import("sip._C_API", 0));

a crash is reported in initsip().

Also, when constructing C++ classes using boost.Python, a strange error is returned:

TypeError: __init__() should return None, not 'NoneType'
Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
Neil G
  • 32,138
  • 39
  • 156
  • 257

1 Answers1

0

Both of these problems are caused by linking against a different version of python than sip/boost are compiled with.

Neil G
  • 32,138
  • 39
  • 156
  • 257