[PyQt] Odd problem with debug build of pyqt5

Phil Thompson phil at riverbankcomputing.com
Wed Jul 23 08:59:30 BST 2014


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

Phil


More information about the PyQt mailing list