Results 1 to 6 of 6

Thread: Python 2.6 QT4

  1. #1
    Join Date
    Apr 2012
    Beans
    10

    Question Python 2.6 QT4

    I have some stone-age software the only runs on Python 2.6. When I try to run it, I get:

    Traceback (most recent call last):
    File "pesterchum.py", line 13, in <module>
    from PyQt4 import QtGui, QtCore
    ImportError: No module named PyQt4

    I know that 2.6 is ancient, but I can't bring it up to date because the program architecture is way beyond me. I have attached the source code, none of you will probably have time to bring it up to date, but can you please tell me either:

    What the correct module is and how to fix it, or

    Fix all references and send the file back to me. (I understand if you don't have time for this)

    Thanks a lot,
    -S

  2. #2
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: Python 2.6 QT4

    First, what version of Ubuntu are you running this on?

    Second, why does it have to run on 2.6?

  3. #3
    Join Date
    Mar 2009
    Location
    Buenos Aires, AR
    Beans
    2,325
    Distro
    Ubuntu

    Re: Python 2.6 QT4

    I think python-qt4 is not installed.

    good luck...

  4. #4
    Join Date
    Apr 2012
    Beans
    10

    Re: Python 2.6 QT4

    Quote Originally Posted by lykwydchykyn View Post
    First, what version of Ubuntu are you running this on?

    Second, why does it have to run on 2.6?
    Ubuntu 12.04, and because the software is ancient, and it's way beyond my ability to bring it up to date. Also, python-qt4 is installed.

  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Python 2.6 QT4

    I changed and now I forgot why. You can see I commented out the version similar to yours.

    #from PyQt4 import QtCore, QtGui, QtSql, Qt
    import sys
    from decimal import *
    from PyQt4.QtCore import *
    from PyQt4.QtGui import *
    from PyQt4.QtSql import *
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Python 2.6 QT4

    Quote Originally Posted by SelbyRowleyCannon View Post
    I know that 2.6 is ancient, but I can't bring it up to date because the program architecture is way beyond me. I have attached the source code, none of you will probably have time to bring it up to date, but can you please tell me either:
    I cannot see any attached source code. Which version of python are you trying to use on 12.04? Is it 2.7.3 or python3?

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
  •