Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems
python and pyqt

Posted by geoatpenn (geoatpenn), 21 July 2005
i would really appreciate some help in installation of pyqt for a project that i am working on which requires qt /python
i tried installing the windows binary package for pyqt (intended for qt evaluation ver 3.3.4) . I need to know if that alone is sufficient to run the python files having qt functions?
I  get these import error messages ( cannot import from qt)
when i try to run the example files supplied with pyqt. obviously i am doing something wrong here.. is there anything else that needs to be done?

Posted by admin (Graham Ellis), 23 July 2005
Here's a quotation from our training notes on Python and Qt which may help.

Here are the component parts that you'll need to install and run the Qt GUI in Python. We've listed them in the order you'll need to source and install them if you're starting from scratch, but you'll often find that many (or most, or all) of the components are a standard part of your distribution, especially on Linux.  On *nix systems, you'll be making use of the (g)cc compiler and on Windows systems you'll download appropriate binaries.

1. Python
The Python scripting language is an excellent and flexible language that provides one of the best object oriented models around. We're fans! Plenty of standard classes ("modules") available, open source, active community, well liked and used.

2. Qt
The Qt GUI toolkit, written in C++. Provides support for all the main elements that you'll want in a GUI ... widgets, geometry managers and event handlers, but with its own extra wrappers and technologies on top to make the whole thing even easier.  Quite a large library, runs on Windows, Mac OS X, Unix, Linux.

The Qt toolkit is written and maintained by Trolltech.1 They say "Qt is a multiplatform C++ application framework developers can use to write single-source applications that run -- natively -- on Windows, Linux, Unix, Mac OS X and embedded Linux. Qt has been used to build thousands of successful commercial applications worldwide, and is the basis of the open source KDE desktop environment..." Trolltech employs a dual licensing strategy, offering both commercial and free software licensing options to developers.

3. SIP
SIP is a tool for generating Python bindings for C and C++ libraries, and it's used by the PyQt installation process.

4. PyQt
PyQt is a set of Python bindings for the Qt toolkit.

PyQt and SIP are written and supplied by Riverbank Computing Ltd.2 "As well as developing closed source software for its clients, Riverbank also supports a number of open source software projects and makes them available to the open source community under the terms of the GNU GPL".

I rather suspect that the poster of this question has posted it very widely or perhaps he's at a college where this has been set as an exercise and everyone's asking on line.  Therefore, I've simply quoted our standard training material above ... quite happy to help out in most circumstances, but I don't feel it's efficient for me to spend a lot of time providing an answer to something that's already been sorted.  

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: • WEB: • SKYPE: wellho