<br><br>
<div><span class="gmail_quote">2007/5/1, David Boddie <<a href="mailto:david@boddie.org.uk">david@boddie.org.uk</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tuesday 01 May 2007 09:26:00 +0800, "haiyun jiang" wrote:<br><br>> I am having some serious problems with *PyQT4*,
<br>> when i run pyqt script, I always get 'Segmentation *fault*'.<br>><br>> the script is simple:<br>> ======================<br>> %less qttest.py<br>> from *PyQt4* import QtGui, QtCore<br>> import sys
<br>><br>> if __name__ == '__main__':<br>> app = QtGui.QApplication(sys.argv)<br>> w = QtGui.QMainWindow()<br>> w.show()<br>> app.exec_()<br>> ======================<br><br>OK. Just to clarify things for other readers, I noticed from your message to
<br>comp.lang.python that you're actually using the line<br><br>from PyQt4 import QtGui, QtCore<br><br>without the asterisks in the quote above.</blockquote>
<div> </div>
<div> YES.</div>
<div> And I am sorry, the asterisks may be created during the "copy & paste" process. I posted this message at comp.lang.python first, and then copyed and posted here.So there is no asterisks in the script source.
<br><br>[...]<br><br>>I noticed that the maintainer of the FreeBSD ports of PyQt4 is reading this<br>>list. Perhaps he has some suggestions for ways to solve this problem.<br><br>>David<br> </div>
<div>I have rebuilded the PyQt4 from source, but the problem seems to be remaining.</div>
<div>And I notice the notes for gettext on <a href="http://www.freshports.org/devel/gettext/:">http://www.freshports.org/devel/gettext/:</a></div>
<div>It says:</div>
<div>"As a result of the upgrade to gettext-0.16.1, the shared library version<br> of libintl has changed, so you will need to rebuild all ports that<br> depend on gettext (ie: most of them, sorry):<br> portupgrade -rf gettext
</div>
<div>"</div>
<div>and PyQT4 have some dependence on gettext.</div>
<div>I install gettext-0.16.1 just as "make install clean" and link libintl.so.6 to libintl.so8 as</div>
<div>"ln -s /usr/local/libintl.so.8 /usr/local/libintl.so.6".</div>
<div>Now I "portupgrade -rf gettext", hope this can make some help.<br> </div>
<div>Regards,</div>
<div>jiang.haiyun</div></div>