[PyKDE] PyQt + multiple Interpreters

Phil Thompson phil at riverbankcomputing.co.uk
Thu Sep 16 17:05:45 BST 2004


On Thursday 16 September 2004 2:01 pm, Christoph Wiedemann wrote:
> Hi all,
>
> i think i found a bug in sipRegisterModule(...). I'm using Sip 3.8. I have
> a program which uses embedded python. It allocates several independent
> interpreters with Py_NewInterpreter.
>
> Now, if more than one interpreter imports the qt module, the program hangs
> in an endless loop inside siplib.c/findClass(...). This is because the
> modulesList->md_next is pointing to modulesList.
>
> I suggest to change sipRegisterModule to insert the module to be registered
> only, if it isn't already in modulesList.

SIP v3.x is deprecated. Try v4 see what happens.

Phil




More information about the PyQt mailing list