Results 1 to 8 of 8

Thread: Installing PyQt4 for Python3.1

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    Sri Lanka
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Unhappy Installing PyQt4 for Python3.1

    Hello guyz I tried to install PyQt4 after installing SIP-4.10.
    When running configure.py in the PyQt4 folder I got the following ERROR message.
    Code:
    senzeh@senzeh-laptop:~/Python/PyQt-x11-gpl-4.7$ python3.1 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.
    senzeh@senzeh-laptop:~/Python/PyQt-x11-gpl-4.7$
    Please help me to solve this!!!

  2. #2
    Join Date
    Nov 2009
    Location
    Sri Lanka
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Unhappy Re: Installing PyQt4 for Python3.1

    Updated

    I installed qt4-qmake. Then after I run the configure.py I got the following Error.

    Code:
    senzeh@senzeh-laptop:~/Python/PyQt-x11-gpl-4.7$ python3.1 configure.py
    Determining the layout of your Qt installation...
    Error: Failed to determine the layout of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    Please help me to solve this....

  3. #3
    Join Date
    Nov 2009
    Location
    Sri Lanka
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Installing PyQt4 for Python3.1

    Pls help me!!!

  4. #4
    Join Date
    Nov 2009
    Location
    Sri Lanka
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Angry Re: Installing PyQt4 for Python3.1

    Here which I got with --verbose flag

    senzeh@senzeh-laptop:~/Python/PyQt-x11-gpl-4.7$ python3.1 configure.py --verbose flag
    Determining the layout of your Qt installation...
    /usr/bin/qmake -o qtdirs.mk qtdirs.pro
    make -f qtdirs.mk
    Error: Failed to determine the layout of your Qt installation. Try again using
    the --verbose flag to see more detail about the problem.
    b'g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdirs.o qtdirs.cpp\n'b'qtdirs.cpp:1:17: error: QFile: No such file or directory\n'b'qtdirs.cpp:2:24: error: QLibraryInfo: No such file or directory\n'b'qtdirs.cpp:3:23: error: QTextStream: No such file or directory\n'b'qtdirs.cpp: In function \xe2\x80\x98int main(int, char**)\xe2\x80\x99:\n'b'qtdirs.cpp:7: error: \xe2\x80\x98QFile\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:7: error: expected \xe2\x80\x98;\xe2\x80\x99 before \xe2\x80\x98outf\xe2\x80\x99\n'b'qtdirs.cpp:9: error: \xe2\x80\x98outf\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:9: error: \xe2\x80\x98QIODevice\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:9: error: \xe2\x80\x98QIODevice\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:9: error: \xe2\x80\x98QIODevice\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:12: error: \xe2\x80\x98QTextStream\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:12: error: expected \xe2\x80\x98;\xe2\x80\x99 before \xe2\x80\x98out\xe2\x80\x99\n'b'qtdirs.cpp:14: error: \xe2\x80\x98out\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:14: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:14: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:15: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:15: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:16: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:16: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:17: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:17: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:18: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:18: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:19: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:19: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:21: error: \xe2\x80\x98QT_VERSION\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:22: error: \xe2\x80\x98QT_EDITION\xe2\x80\x99 was not declared in this scope\n'b'qtdirs.cpp:24: error: \xe2\x80\x98QLibraryInfo\xe2\x80\x99 has not been declared\n'b'qtdirs.cpp:86: error: \xe2\x80\x98qreal\xe2\x80\x99 was not declared in this scope\n'b'make: *** [qtdirs.o] Error 1\n'senzeh@senzeh-laptop:~/Python/PyQt-x11-gpl-4.7$

  5. #5
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Installing PyQt4 for Python3.1

    are you sure you have the qt4 development files installed?

    $sudo apt-get install libqt4-dev

  6. #6
    Join Date
    Apr 2010
    Beans
    1

    Re: Installing PyQt4 for Python3.1

    Quote Originally Posted by SevenMachines View Post
    are you sure you have the qt4 development files installed?

    $sudo apt-get install libqt4-dev
    Thank you thank you thank you thank you!!! I've run into the same problems as the member above, and have been stumped for the last two hours. I ran into this link on google, put that command in, and BAM it worked.

    For those wondering how exactly I installed PyQt4 on my Ubuntu 9.10 machine, this is how I did it:

    I had to download both SIP and PyQt4 from the official website. I then had to install qmake, python-qt4, gcc-c++ (for the g++ command), and the libqt4-dev.

    I then was able to manually install SIP and PyQt4 for Python 3.1 using the following commands for each:

    python3.1 configure.py
    make
    sudo make install

    Works like a charm now! Thanks.

  7. #7
    Join Date
    May 2010
    Beans
    8

    Re: Installing PyQt4 for Python3.1

    I needed also to install python3.1-dev before 'making' SIP.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •