From: Patrick S. <pat...@gm...> - 2006-02-04 06:19:11
|
After building PyQt4 on OS X, I get this error for import qt and from PyQt4 import * I've got fink qt3 installed. Any ideas? -- Patrick Kidd Stinson http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |
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/ |
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/ |
From: Andy D. <ada...@sm...> - 2006-03-27 15:56:22
|
I am using PyQt4-snapshot* against a from-source python-2.4.2 on OS X. Check that your DYNLOADFILE isn't defaulting to something like dyn_next.o. You can see configure report the use of dyn_next, so it's easy to test early in the build process. I hacked around this and promptly forgot my solution, but I was later able to provide the hint to a coworker and he now reports that you'll need to do a DYNLOADFILE=dyn_shlib.o ./configure --enable-framework --enable- toolbox-glue --enable-shared ... Thanks to Phil and the group for the software and support, On Mar 27, 2006, at 2:58 AM, Patrick Stinson wrote: > After hours of frustrating madness, I've finally realized that you > can't use 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... |
From: Patrick S. <pat...@gm...> - 2006-03-27 19:32:17
|
excellent! I'll give that a whack. having one machine with 2.3 was causing me to write more compliant code, bu= t oh well...I want subprocess! On 3/27/06, Andy Davidoff <ada...@sm... > wrote: > > I am using PyQt4-snapshot* against a from-source python-2.4.2 on OS X. > > Check that your DYNLOADFILE isn't defaulting to something like > dyn_next.o. You can see configure report the use of dyn_next, so > it's easy to test early in the build process. I hacked around this > and promptly forgot my solution, but I was later able to provide the > hint to a coworker and he now reports that you'll need to do a > DYNLOADFILE=3Ddyn_shlib.o ./configure --enable-framework --enable= - > toolbox-glue --enable-shared ... > > Thanks to Phil and the group for the software and support, > > > On Mar 27, 2006, at 2:58 AM, Patrick Stinson wrote: > > After hours of frustrating madness, I've finally realized that you > > can't use 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... > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > Pyqt-mac-list mailing list > Pyq...@li... > https://lists.sourceforge.net/lists/listinfo/pyqt-mac-list > -- Patrick Kidd Stinson http://www.patrickkidd.com/ http://pkaudio.sourceforge.net/ http://pksampler.sourceforge.net/ |