[PyQt] pyqt - TypeError: argument of type 'int' is not iterable

Martin Schiøtz malinux at gmail.com
Mon May 10 22:09:03 BST 2010


Hi

I'm trying to install pyqt 4.7.3 but I get this error.

Cheers!
Martin


$ brew install pyqt
==> Downloading
http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.7.3.tar.gz
File already downloaded and cached to /Users/malinko/Library/Caches/Homebrew
==> python ./configure.py -g --confirm-license
--bindir=/usr/local/Cellar/pyqt/4.7.3/bin
--destdir=/usr/local/Cellar/pyqt/4.7.3/lib/python
--sipdir=/usr/local/Cellar/pyqt/4.7.3/share/sip
An internal error occured.  Please report all the output from the program,
including the following traceback, to support at riverbankcomputing.com.
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.7.3 (licensed under the GNU General Public
License) for Python 2.6.1 on darwin.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Qt v4.6.2 free edition is being used.
Qt is built as a framework.
SIP 4.10.2 is being used.
The Qt header files are in /usr/local/Cellar/qt/4.6.2/include.
The shared Qt libraries are in /usr/local/Cellar/qt/4.6.2/lib.
The Qt binaries are in /usr/local/Cellar/qt/4.6.2/bin.
The Qt mkspecs directory is in /usr/local/Cellar/qt/4.6.2.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtOpenGL, QtScript, QtScriptTools, QtSql, QtSvg, QtTest, QtWebKit,
QtXml, QtXmlPatterns, phonon, QtAssistant, QtDesigner.
The PyQt Python package will be installed in
/usr/local/Cellar/pyqt/4.7.3/lib/python.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/usr/local/Cellar/qt/4.6.2/plugins/designer.
The PyQt .sip files will be installed in
/usr/local/Cellar/pyqt/4.7.3/share/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in
/usr/local/Cellar/pyqt/4.7.3/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtHelp module...
Creating the Makefile for the QtHelp module...
Generating the C++ source for the QtMultimedia module...
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Determining the OpenGL data types...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Traceback (most recent call last):
  File "./configure.py", line 2137, in <module>
    main()
  File "./configure.py", line 2099, in main
    pyqt.code()
  File "./configure.py", line 445, in code
    generate_code("QtOpenGL")
  File "./configure.py", line 1624, in generate_code
    makefile.generate()
  File "/usr/local/lib/python/sipconfig.py", line 1088, in generate
    self.ready()
  File "/usr/local/lib/python/sipconfig.py", line 1083, in ready
    self.finalise()
  File "/usr/local/lib/python/sipconfig.py", line 1771, in finalise
    ModuleMakefile.finalise(self)
  File "/usr/local/lib/python/sipconfig.py", line 1528, in finalise
    Makefile.finalise(self)
  File "/usr/local/lib/python/sipconfig.py", line 811, in finalise
    if self.config.qt_version < 0x040000 or "QtGui" in self._qt:
TypeError: argument of type 'int' is not iterable
Exit status: 1

http://github.com/mxcl/homebrew/blob/master/Library/Formula/pyqt.rb#L18

==> Environment
HOMEBREW_VERSION: 0.6
HEAD: 0b34c8b9987b16e7fd60128f4f95280856b8537e
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Users/malinko/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit core2
OS X: 10.6.3
Kernel Architecture: i386
Ruby: 1.8.7-173
GCC-4.0: build 5493 (5493 or newer recommended)
GCC-4.2: build 5659 (5646 or newer recommended)
LLVM: build 2207 (2206 or newer recommended)
MacPorts or Fink? false
X11 installed? true
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

==> Build Flags
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
MAKEFLAGS: -j2
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Error: Failure while executing: python ./configure.py -g
--confirm-license --bindir=/usr/local/Cellar/pyqt/4.7.3/bin
--destdir=/usr/local/Cellar/pyqt/4.7.3/lib/python
--sipdir=/usr/local/Cellar/pyqt/4.7.3/share/sip


More information about the PyQt mailing list