[PyQt] Odd problem with debug build of pyqt5
Scott Kitterman
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>
>> ImportError:
>> /usr/lib/python3/dist-packages/PyQt5/QtCore.cpython-34dm-i386-
>> 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:
>>
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755767
>
>This is probably the problem (from the Python source)...
>
>#ifdef Py_TRACE_REFS
> /* 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
>#endif
For completeness, looks like gcc gets the blame.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61918
Thanks again for the pointer,
Scott K
More information about the PyQt
mailing list