Hi,<div><br></div><div>I am trying to install PyQt on Fedora 12 Desktop machine.</div><div>I have installed Qt-x11, sip, PyQt.</div><div><br></div><div>1. <b>qt-x11-opensource-src-4.5.3</b></div><div> tar xvfz qt-x11-opensource-src-4.5.3.tar.gz</div>
<div> cd qt-x11-opensource-src-4.5.3</div><div> ./configure -fast -qt-sql-sqlite -no-qt3support</div><div> make</div><div> make install</div><div><br></div><div>2. <b>sip-4.10.2</b></div><div><div>
tar xvfz sip-4.10.2.tar.gz</div><div> cd sip-4.6.10.2</div><div> python configure.py</div><div> make</div><div> make install</div></div><div><br></div><div>3.<b> PyQt-x11-gpl-4.7.3</b></div><div>
tar -zxvf PyQt-x11-gpl-4.7.3.tar.gz</div><div> cd PyQt-x11-gpl-4.7.3</div><div> python configure.py (<span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q argument to explicitly specify a working Qt v4 qmake</i></span>.)</div>
<div><br></div><div> python configure.py -q /usr/bin/qmake-qt4 ( <span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>Error: Qt has been built as static libraries so either the -g or -k argument should be used.</i></span> )</div>
<div> </div><div> python configure.py -q /usr/bin/qmake-qt4 -g (<i><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">Error</span></i>)</div><div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>Creating the Makefile for the QtOpenGL module...</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>An internal error occured. Please report all the output from the program,</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>including the following traceback, to <a href="mailto:support@riverbankcomputing.com">support@riverbankcomputing.com</a>.</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>Traceback (most recent call last):</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "configure.py", line 2137, in <module></i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> main()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "configure.py", line 2099, in main</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> pyqt.code()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "configure.py", line 445, in code</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> generate_code("QtOpenGL")</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "configure.py", line 1624, in generate_code</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> makefile.generate()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1088, in generate</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> self.ready()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1083, in ready</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> self.finalise()</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1771, in finalise</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> ModuleMakefile.finalise(self)</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1528, in finalise</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> Makefile.finalise(self)</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> File "/usr/lib/python2.6/site-packages/sipconfig.py", line 811, in finalise</i></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i> if self.config.qt_version < 0x040000 or "QtGui" in self._qt:</i></span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"><i>TypeError: argument of type 'int' is not iterable</i></span></div>
</div><div><br></div><div> python configure.py -q /usr/bin/qmake-qt4 -k (<i><span class="Apple-style-span" style="background-color: rgb(153, 255, 255);">configures, compiled & installed well</span></i>).</div><div><br>
</div><div><br></div><div>But when I do "from PyQt4 import QtGui" fails.</div><div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">>>> from PyQt4 import QtGui</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">Traceback (most recent call last):</span></div><div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);"> File "<stdin>", line 1, in <module></span></div>
<div><span class="Apple-style-span" style="background-color: rgb(204, 204, 204);">ImportError: cannot import name QtGui</span></div></div><div><br></div><div>where as "import PyQt4" works.</div><div><br></div><div>
After installation my Package contains</div><div><span class="Apple-style-span" style="background-color: rgb(153, 255, 255);"><i>root]# ls /usr/lib/python2.6/site-packages/PyQt4/</i></span></div><div><div><span class="Apple-style-span" style="background-color: rgb(153, 255, 255);">__init__.py libQtAssistant.a libQtHelp.a libQtScript.a libQtSvg.a libQtXml.a uic/</span></div>
<div><span class="Apple-style-span" style="background-color: rgb(153, 255, 255);">__init__.pyc libQtCore.a libQtNetwork.a libQtScriptTools.a libQtTest.a libQtXmlPatterns.a</span></div><div><span class="Apple-style-span" style="background-color: rgb(153, 255, 255);">libQt.a libQtGui.a libQtOpenGL.a libQtSql.a libQtWebKit.a pyqtconfig.py</span></div>
</div><div><br></div><div>I dont what I am missing out? Any help would be greatly appreciated. Thanks in Advance.</div><div><br></div><div>-Praveen</div><div><br></div><div><br></div><div><br></div>