[PyQt] Problem with snapshot and OpenGL on MAC
Philip J. Schneider
pterosaur at earthlink.net
Sun Jan 31 18:25:46 GMT 2010
>On Thu, 7 Jan 2010 11:49:42 -0700, Brian Brown <rbb at techgame.net> wrote:
>> Ok, I'll try again...
>> I have a freshly downloaded and intalled Qt 4.6 on Mac OS X Leopard
>> I downloaded, built and installed the latest commercial snapshot (as of
>> yesterday it was the 12-31 snapshot).
>> The qtdemo app with the Qt 4.6 install works and the OpenGL examples run
>> fine. When I try to import PyQt4.QtOpenGL I get the error:
>> Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
>> [GCC 4.0.1 (Apple Inc. build 5493)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> from PyQt4 import QtOpenGL
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in <module>
>> 2): Symbol not found:
>> Referenced from:
>> Expected in: dynamic lookup
>> Any idea what is going on?
>I can't reproduce this with 10.6.2 and current snapshots.
>PyQt mailing list PyQt at riverbankcomputing.com
I've just downloaded (what I think are) the latest of the Mac versions of:
- Qt (4.6.1 - the "Qt SDK: Complete Development Environment" version)
- PyQt (4.7.1-snapshot-20100120)
- Sip 4.10
Built it according to William Kyngesburye's instructions in his email
python configure.py -n -d /Library/Python/2.6/site-packages -b
/usr/local/bin -e /usr/local/include -v /usr/local/share/sip
--arch=i386 -s MacOSX10.6.sdk
sudo make install
python configure.py -d /Library/Python/2.6/site-packages -b
sudo make install
I'm on a Mac Mini (32-bit), and using Mac OSX 10.6.2 and Python 2.6.
I'm seeing the same load failure that Brian's reporting - it does
indeed emanate from this line:
from PyQt4 import QtOpenGL
I'm going to wipe out my entire Qt, PyQt, and sip installs, and
retry, on the notion that there's something stale (i.e. from an old
Qt or PyQt install). Anything else I should try, if this doesn't do
the trick? In either case, I'll let y'all know if this works or not...
More information about the PyQt