[PyQt] Odd problem with debug build of pyqt5
debian at kitterman.com
Sat Jul 26 18:37:12 BST 2014
On July 23, 2014 1:59:30 AM MDT, Phil Thompson <phil at riverbankcomputing.com> wrote:
>On 23/07/2014 5:09 am, Scott Kitterman wrote:
>> With our current python3 debug build of pyqt5 I get this error:
>>>>> import PyQt5
>>>>> import PyQt5.QtCore
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> linux-gnu.so: undefined symbol: PyModule_Create2
>> The non-debug build imports PyQt5.QtCore. Both were built with the
>> same GCC,
>> the same python3, the same Sip, and the same PyQt5.
>> Any suggestions on how to troubleshoot this?
>> For reference, this is filed as Debian bug 755767:
>This is probably the problem (from the Python source)...
> /* When we are tracing reference counts, rename PyModule_Create2 so
> modules compiled with incompatible settings will generate a
> link-time error. */
> #define PyModule_Create2 PyModule_Create2TraceRefs
For completeness, looks like gcc gets the blame.
Thanks again for the pointer,
More information about the PyQt