[PyQt] SIP exception translation results in internal error

Arve Knudsen arve.knudsen at gmail.com
Tue Jun 3 11:53:34 BST 2008


On Tue, Jun 3, 2008 at 11:09 AM, Arve Knudsen <arve.knudsen at gmail.com> wrote:
> On 6/3/08, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> On Tuesday 03 June 2008 9:38:24 am Arve Knudsen wrote:
>>  > Hi
>>  >
>>  > I tried to play with SIP's support for automatic exception translation
>>  > (the "-e" option), in our application which embeds Python/PyQt. The
>>  > platform is Ubuntu 7.10 32bit. It doesn't seem to quite work however,
>>  > since an internal error is encountered in PyEval_SaveThread: Fatal
>>  > Python error: PyEval_SaveThread: NULL tstate. The gdb traceback shows
>>  > that the call to PyEval_SaveThread happens in QtCore.so. A bug in SIP
>>  > or PyQt?
>>
>>
>> Do you have a test case?
>
> Not at the moment at least, since this is in a larger application
> which embeds Python. I can try to reproduce the error in a smaller
> program, however. Could be that the error has to do with Python being
> embeddd.
>

So far I've tried a simple non-embedded test case, and it works. So
it's not unlikely my initial hunch was correct. I'll see if I can get
around to writing a case for this.

Arve


More information about the PyQt mailing list