On Tue, 25 Jun 2013 15:36:59 +0100, Anzir Boodoo <a...@transcience.co.uk> wrote: > Hello, > > I've been trying to install PyQt 5 on Mac OS X 10.6.8, and got the > following output (the first line being the Terminal command): > >> Anzir-Boodoos-MacBook-Pro-2:PyQt-gpl-5.0 pbadmin$ python configure.py >> --verbose >> Querying qmake about your Qt installation... >> An internal error occured. Please report all the output from the >> program, >> including the following traceback, to supp...@riverbankcomputing.com. >> Traceback (most recent call last): >> File "configure.py", line 2409, in <module> >> main(sys.argv) >> File "configure.py", line 2366, in main >> target_config.get_qt_configuration(opts) >> File "configure.py", line 484, in get_qt_configuration >> if qt_config.QMAKE_SPEC == 'macx-xcode': >> AttributeError: TargetQtConfiguration instance has no attribute >> 'QMAKE_SPEC' > > I had a look at configure.py, and notice the line in question seems to be > from here: > >> # The binary MacOS/X Qt installer defaults to XCode. If this is >> what >> # we might have then use macx-clang. >> if sys.platform == 'darwin': >> if qt_config.QMAKE_SPEC == 'macx-xcode': >> # This will exist (and we can't check anyway). >> self.qmake_spec = 'macx-clang' >> else: >> # No need to explicitly name the default. >> self.qmake_spec = '' >> >> # See if it is a framework. >> if os.access(os.path.join(qt_config.QT_INSTALL_LIBS, >> 'QtCore.framework'), os.F_OK): >> self.qt_framework = True > > > I'm by no means a Python expert (I'm at the beginning of learning Qt, > certainly), but qt_config.QMAKE_SPEC doesn't seem to be defined anywhere > here (I may be completely wrong, but that appears to be where configure.py > is failing). > > Can anyone tell me where I might have gone wrong and what I'd need to do > to get PyQt 5 installed?
Use the --qmake flag to point to Qt5's qmake. You are probably defaulting to Qt4's. Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt