[PyQt] PyQt4.QtGui + uuid.uuid4() = segfault

Baz Walter bazwal at ftml.net
Fri Dec 10 17:04:08 GMT 2010


On 10/12/10 07:57, Christopher Singley wrote:
> Sorry, I spoke too fast.  The issue persists on my system:
>
> Python 2.7.1 (r271:86832, Dec  1 2010, 23:37:45)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from PyQt4 import QtCore, QtGui
>>>> QtCore.PYQT_VERSION_STR
> '4.8.1'
>>>> import uuid
>>>> uuid.uuid4()
> Segmentation fault
>
>
> Python 2.7.1 (r271:86832, Dec  1 2010, 23:37:45)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import uuid
>>>> from PyQt4 import QtGui
>>>> uuid.uuid4()
> UUID('25599b3b-bc40-488f-ab9d-8beccde99def')
>
> The workaround here is therefore obvious, but I'd still to figure out
> what's going on here.  I don't have much experience debugging this
> sort of issue, any hints?

sorry, but i don't have any hints. however, the problem does not occur 
on my current set-up:

Python 2.7.1 (r271:86832, Dec  2 2010, 03:10:07)
[GCC 4.5.1 20101125 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> from PyQt4 import QtCore, QtGui
 >>> QtCore.PYQT_VERSION_STR
'4.8.1'
 >>> import uuid
 >>> uuid.uuid4()
UUID('894b501b-5f3a-424e-a0cc-b57555fd64f3')
 >>>

the only obvious difference is the gcc version.


More information about the PyQt mailing list