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

Mike Ramirez gufymike at gmail.com
Fri Dec 10 03:32:42 GMT 2010


On Thursday, December 09, 2010 06:56:18 pm Christopher Singley wrote:
> I'm using PyQt4 v4.7.3.  Check this out:
> 
> 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 QtGui
> >>> import uuid
> >>> uuid.uuid4()
> 
> Segmentation fault
> 
> If I import uuid before QtGui, though, then it works fine.
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Not sure how much help this will be, but I can't reproduce it using python 
2.6, same version of PyQt. I would try to debug the python interpretter with 
gdb at this point.

Python 2.6.4 (r264:75706, Jun  4 2010, 18:20:31) 
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtGui
>>> import uuid
>>> uuid.uuid4()
UUID('6a93b09c-972e-40bd-a93a-9a1ef920e341')
>>> from PyQt4 import QtCore
>>> QtCore.PYQT_VERSION_STR
'4.7.3'


Mike
-- 
In charity there is no excess.
		-- Francis Bacon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101209/33a69d1a/attachment.html>


More information about the PyQt mailing list