[PyKDE] embedding SIP wrapped library...

Bjorn Pettersen BPettersen at narex.com
Thu May 30 10:33:01 BST 2002


> From: Bjorn Pettersen 
> 
> > From: Bjorn Pettersen
> 
> I hate to reply to myself...

Yet, here I am again (*sigh*).

[snip]

> It still doesn't work however. I get a 
> 
>   Fatal Python error: PyEval_SaveThread: NULL tstate
> 
> If anyone knows what could cause this, I would appreciate a 
> pointer :-) In the meantime I'll try to dig into it myself...

It turned out it creashed on the Py_BEGIN_ALLOW_THREADS that are put
around the calls to C++. Since I don't have an immediate need for
multithreading I just changed SIP to not genereate these macros. If
someone has a more elegant solution I'm all ears...

-- bjorn




More information about the PyQt mailing list