initsip() crashes with a corrupted stack

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'

Answers


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


Need Your Help

Auto Post from my one WP to another WP

php wordpress wordpress-plugin

How can I automatically create a post to another Wordpress site that I own with the same content that I used on the post on my Main Wordpress site.

Change report data visibility based on rendering format in Reporting Services

sql-server reporting-services report

Is it possible to hide or exclude certain data from a report if it's being rendered in a particular format (csv, xml, excel, pdf, html).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.