From: Patrick S. <pat...@gm...> - 2006-03-27 07:58:24
|
After hours of frustrating madness, I've finally realized that you can't us= e pyqt4 with MacPython-2.4.1 or python-2.4.2 from source. Everything works fine with the MacPython-2.3.5 installed with tiger, as long as qt is configured with -no-framework. Is there some dynamic library config option on python-2.4.2 that will fix this? .and to think all that was because unittest.TestCase.assertTrue doesn't exist in 2.3. geeze... On 3/16/06, Patrick Stinson <pat...@gm...> wrote: > > I had everything working with standard OS X python2.3, but started gettin= g > this error after trying to install with python2.4.2 from source, and also > with python.org's 2.4.1 binaries. > > patrickkidd:~/Desktop/PyQt4-gpl-snapshot-20060314 patrick$ python > Python 2.4.1 (#2, Mar 31 2005, 00:05:10) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import PyQt4.QtGui > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: Inappropriate file type for dynamic loading > >>> > > Now I can't get it working anywhere. I'm sure this has something to do > with the mkspec build profile (of which I'm using macx-g++). After lookin= g > in the python source, this error is raised when the interpreter attempts = to > open a file as a shared library anf failes with a "not approriate" kind o= f > error. Anyway, I get this in a few other places on my mac as well, and it > would be nice to sort out. I built qt-4.1.1 from source with ./configure > -qt-gif. > > - OS X python-2.4.1 binaries from python.org > - python.org tiger fix > - qt-4.1.1 > - latest snapshots of sip and PyQt4 > > -- > Patrick Kidd Stinson > http://www.patrickkidd.com/ > http://pkaudio.sourceforge.net/ > http://pksampler.sourceforge.net/ > -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |