From: Patrick S. <pat...@gm...> - 2006-03-16 17:35:42
|
I had everything working with standard OS X python2.3, but started getting 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 looking in th= e 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 of 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/ |