[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Odd problem with debug build of pyqt5
From:       Scott Kitterman <debian () kitterman ! com>
Date:       2014-07-26 17:37:12
Message-ID: c0e705f4-b381-4d48-9612-80022bbec2ed () email ! android ! com
[Download RAW message or body]

On July 23, 2014 1:59:30 AM MDT, Phil Thompson <phil@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


_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic