[PyQt] Symbol not found: _sipQtConnect (Qt5 and PyQt 4.10 on OSX, 32 bit)
phil at riverbankcomputing.com
Fri Mar 15 09:07:49 GMT 2013
On Fri, 15 Mar 2013 15:51:00 +1300, Glenn Ramsey <gr at componic.co.nz>
> I have built a 32 bit version of PyQt on OSX (10.8.2) using Qt5, but it
> Python 2.7.3 (default, Feb 26 2013, 11:03:37)
> [GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import PyQt4.QtCore
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> 2): Symbol not found: _sipQtConnect
> Referenced from:
> Expected in: flat namespace
> Is there a workaround for this issue?
> My setup:
> I'm using the git version of qt5 (5.0.x), because there is a bug in
> prevents 32 bit builds on OSX, with the following config.
> ./configure -platform macx-clang-32 -nomake docs -nomake examples
> -nomake tests -nomake webkit -opensource -confirm-license -release
> sip 4.14.4
> python configure.py --arch i386
> PyQt 4.10 (commercial)
> python configure.py --use-arch i386
> I had to change qt_macx_spec in configure.py to get it work:
> #qt_macx_spec = 'macx-g++'
> qt_macx_spec = 'macx-clang-32'
> The python version is 2.7 from MacPorts, built as 32 bit.
> I have also rebuilt both sip and PyQt4 after doing a "make clean".
You are doing a few things which, at best, are untested.
Can you "import sip"?
There may be an issue building sip with macx-g++ and PyQt with
>From previous experience I don't trust MacPorts stuff.
More information about the PyQt