Results 1 to 3 of 3

Thread: pyQt4 SQL Examples Import Problem

  1. #1
    Join Date
    Jun 2005
    Location
    UK
    Beans
    109

    pyQt4 SQL Examples Import Problem

    I am starting to develop a program using SQLite and qt4. Trying out the examples that come with py-qt4 I am having a problem with one of the modules.


    Code:
    Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
    [GCC 4.4.5] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from PyQt4 import QtCore, QtGui, QtSql
    >>> import connection
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named connection
    >>>
    So which module do I need to install for "connection". Searching on Google hasn't helped.

    Ian.

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

    Re: pyQt4 SQL Examples Import Problem

    Quote Originally Posted by igb View Post
    I am starting to develop a program using SQLite and qt4. Trying out the examples that come with py-qt4 I am having a problem with one of the modules.

    So which module do I need to install for "connection". Searching on Google hasn't helped.
    The connection in the examples refers to connection.py in the examples directory.

  3. #3
    Join Date
    Jun 2005
    Location
    UK
    Beans
    109

    Re: pyQt4 SQL Examples Import Problem

    Doh! Thank you very much.

    Ian.

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
  •