[PyQt] PyQt installation problem

praveen koduru prawin1111 at gmail.com
Mon Jun 14 12:25:42 BST 2010


Hi,

I am trying to install PyQt on Fedora 12 Desktop machine.
I have installed Qt-x11, sip, PyQt.

1. *qt-x11-opensource-src-4.5.3*
        tar xvfz qt-x11-opensource-src-4.5.3.tar.gz
        cd qt-x11-opensource-src-4.5.3
        ./configure -fast -qt-sql-sqlite -no-qt3support
       make
       make install

2. *sip-4.10.2*
       tar xvfz sip-4.10.2.tar.gz
      cd sip-4.6.10.2
      python configure.py
      make
       make install

3.* PyQt-x11-gpl-4.7.3*
     tar -zxvf PyQt-x11-gpl-4.7.3.tar.gz
     cd PyQt-x11-gpl-4.7.3
     python configure.py (*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*.)

     python configure.py -q /usr/bin/qmake-qt4 ( *Error: Qt has been built
as static libraries so either the -g or -k argument should be used.* )

     python configure.py -q /usr/bin/qmake-qt4 -g (*Error*)
*Creating the Makefile for the QtOpenGL module...*
*An internal error occured.  Please report all the output from the program,*
*including the following traceback, to support at riverbankcomputing.com.*
*Traceback (most recent call last):*
*  File "configure.py", line 2137, in <module>*
*    main()*
*  File "configure.py", line 2099, in main*
*    pyqt.code()*
*  File "configure.py", line 445, in code*
*    generate_code("QtOpenGL")*
*  File "configure.py", line 1624, in generate_code*
*    makefile.generate()*
*  File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1088, in
generate*
*    self.ready()*
*  File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1083, in ready
*
*    self.finalise()*
*  File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1771, in
finalise*
*    ModuleMakefile.finalise(self)*
*  File "/usr/lib/python2.6/site-packages/sipconfig.py", line 1528, in
finalise*
*    Makefile.finalise(self)*
*  File "/usr/lib/python2.6/site-packages/sipconfig.py", line 811, in
finalise*
*    if self.config.qt_version < 0x040000 or "QtGui" in self._qt:*
*TypeError: argument of type 'int' is not iterable*

 python configure.py -q /usr/bin/qmake-qt4 -k (*configures, compiled &
installed well*).


But when I do "from PyQt4 import QtGui" fails.
>>> from PyQt4 import QtGui
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name QtGui

where as "import PyQt4" works.

After installation my Package contains
*root]#  ls /usr/lib/python2.6/site-packages/PyQt4/*
__init__.py         libQtAssistant.a    libQtHelp.a         libQtScript.a
    libQtSvg.a          libQtXml.a          uic/
__init__.pyc        libQtCore.a         libQtNetwork.a
 libQtScriptTools.a  libQtTest.a         libQtXmlPatterns.a
libQt.a             libQtGui.a          libQtOpenGL.a       libQtSql.a
   libQtWebKit.a       pyqtconfig.py

I dont what I am missing out? Any help would be greatly appreciated. Thanks
in Advance.

-Praveen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100614/3e4c60d5/attachment.html>


More information about the PyQt mailing list