In article <010e9186-252a-459c-8be8-9de05fc0e...@mac.com>,
 Arana Fireheart <aranafirehe...@mac.com> wrote:
> Okay, I GIVE UP!!
> 
>       I have tried just about everything I can think of and they all failed! 
> I 
> have spent over a month on this and can't seem to get all of these pieces to 
> work together.
> 
>       I have tried all the latest developers releases for QT, sip and PyQt 
> and all 
> I can get to is a wrong architecture message (see below). I have tried 
> virtualenv and no virtualenv. I have tried to force python to use 32-bit 
> (defaults write com.apple.versioner.python Prefer-32-Bit -bool yes), without 
> any change. I think it is an issue with 32/64-bit versions, but I can't 
> figure out which piece is the one using the wrong architecture...
> 
>       If ANYONE has managed to get PyQt to build and install on Lion, could 
> you 
>  please let me know how you did it...
> 
> Arana
> 
> 
>     from PyQt4 import QtCore
> ImportError: 
> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pa
> ckages/PyQt4/QtCore.so, 2): no suitable image found.  Did find:
>       
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
> PyQt4/QtCore.so: mach-o, but wrong architecture

For what it's worth, the "defaults" trick to run in 32-bit-mode is an 
Apple modification to their system Pythons in 10.6 and 10.7, i.e. 
/usr/bin/python* and /System/Library/Frameworks/Python.framework.   It 
doesn't work with other Pythons, which you apparently have installed 
(/Library/Frameworks/Python.framework).  Which Python are you using?  
You can determine what architectures are involved by using the "file" 
command:

    cd /Library/Frameworks/Python.framework/Versions/2.6
    file ./lib/python2.6/site-packages/PyQt4/QtCore.so
    file ./bin/python2.6

There must be a common subset of architectures and the interpreter has 
to running in one of those common archs.

-- 
 Ned Deily,
 n...@acm.org

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to