[PyQt] Symbol not found in QtGui.so on Snow Leopard 10.6.3 64bit

Rob McPeak rob at mcpeak.org
Wed May 19 18:54:49 BST 2010


I'm getting the following error when trying to import PyQt4.QtGui using my freshly-built Qt, SIP and PyQt4.
Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4.QtCore import *
>>> from PyQt4.QtGui import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.6/site-packages/PyQt4/QtGui.so, 2): Symbol not found: __ZN13QPyTextObject16staticMetaObjectE
  Referenced from: /Library/Python/2.6/site-packages/PyQt4/QtGui.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/PyQt4/QtGui.so

To build qt-everywhere-opensource-src-4.6.2 I did the following, since I'd like to get everything running in 64bit mode:
./configure -arch x86_64
gmake
sudo gmake install

I built sip-4.10.2 this way:
python configure.py
make
sudo make install

I built PyQt-mac-gpl-4.7.3 this way:
python configure.py -q /usr/local/Trolltech/Qt-4.6.2/bin/qmake
make
sudo make install

My system is running in 64bit mode, specifically:
Darwin robert-mcpeaks-macbook-pro.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:57:13 PST 2010; root:xnu-1504.3.12~1/RELEASE_X86_64 x86_64

Everything appeared to build correctly.  The error message above was from my first test.  :)  Python 2.6.1 is supposed to default to running the 64bit version, unless you tell it otherwise - I have not messed with the defaults.  I'm fairly certain that this is a user error, since this is my first foray into both Qt and programing on the Mac - I'm coming from the Linux world.

Any pointers on what I might look at to resolve this would be greatly appreciated.

Thanks!
Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100519/f3a17abd/attachment.html>


More information about the PyQt mailing list