[PyQt] PyQt-mac-gpl-4.3 and ImportError: No module named QtCore

Bob Tanner tanner at real-time.com
Sat Aug 18 06:10:17 BST 2007

Still trying to get PyQt-4.3 working on OSX 10.4, I compiled up 
Qt-4.3.1 using the following options.

$ ./configure -prefix /Developer/qt -qt-zlib -qt-libpng -qt-libjpeg 
-universal -sdk /Developer/SDKs MacOSX10.4u.sdk -static -release
$ make sub-src

Do I need to pass anything special to PyQt's configure.py?

I've tried the -k and -c but I still get an import error.

$ python
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import qVersion, PYQT_VERSION
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named QtCore

More information about the PyQt mailing list