【问题标题】:initsip() crashes with a corrupted stackinitsip() 因堆栈损坏而崩溃
【发布时间】:2011-11-09 23:31:21
【问题描述】:

获得指向 sip API 的指针时:

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

initsip() 报告了崩溃。

另外,在使用 boost.Python 构造 C++ 类时,会返回一个奇怪的错误:

TypeError: __init__() should return None, not 'NoneType'

【问题讨论】:

    标签: python boost-python python-sip


    【解决方案1】:

    这两个问题都是由与编译 sip/boost 的不同版本的 python 链接引起的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      相关资源
      最近更新 更多