Results 1 to 2 of 2

Thread: PyQt4 Import Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Posts
    1
    Qt products
    Qt5

    Default PyQt4 Import Error

    Hello all,

    I have downloaded PyQt4 and have been able to use it without any issues in Idle. However, when I am trying to execute a command in terminal, I am receiving the error

    Qt Code:
    1. ImportError: No module named PyQt4
    To copy to clipboard, switch view to plain text mode 

    I have Qt 5.5.1 and am receiving the following error in terminal

    Qt Code:
    1. User-MacBook-Pro:Python $ which python
    2. /Library/Frameworks/Python.framework/Versions/2.7/bin/python
    3. User-MacBook-Pro:Python $ pyuic4 Print.ui>Print_ui.py
    4. Traceback (most recent call last):
    5. File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/pyuic.py", line 26, in <module>
    6. from PyQt4 import QtCore
    7. ImportError: No module named PyQt4
    To copy to clipboard, switch view to plain text mode 

    Any help would be appreciated

  2. #2
    Join Date
    Jan 2016
    Posts
    2
    Qt products
    Platforms
    Windows

    Default Re: PyQt4 Import Error

    Try manually setting a path to your PyQt4 file location.

Similar Threads

  1. QML import error
    By Dmitriy_RUS in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 1st June 2015, 18:08
  2. Error message PyQt4 QDataWidgetMapper
    By lpicasso in forum Newbie
    Replies: 0
    Last Post: 20th October 2012, 14:50
  3. Urgent. Need help!!! Compile Pyqt4 error. ;(
    By fxzf in forum Installation and Deployment
    Replies: 0
    Last Post: 5th December 2011, 12:35
  4. Error when installing PyQt4
    By melanez in forum Installation and Deployment
    Replies: 0
    Last Post: 8th November 2011, 14:49
  5. Replies: 3
    Last Post: 6th October 2011, 12:14

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.