Ned,

        Thanks for the help. I am VERY grateful for any assistance I can get 
with this.

        It appears that I have two issues. First is that I am not using the 
system python (maybe I shouldn't be), secondly that the version of PyQt in that 
directory is compiled for 64 bit. At least that is what I believe the following 
is telling me… ???

Thanks,
Arana


Aranas-BIG-Toy:PyQt Install arana$ cd 
/Library/Frameworks/Python.framework/Versions/2.6
Aranas-BIG-Toy:2.6 arana$    file ./lib/python2.6/site-packages/PyQt4/QtCore.so
./lib/python2.6/site-packages/PyQt4/QtCore.so: Mach-O 64-bit bundle x86_64
Aranas-BIG-Toy:2.6 arana$    file ./bin/python2.6
./bin/python2.6: Mach-O universal binary with 2 architectures
./bin/python2.6 (for architecture ppc): Mach-O executable ppc
./bin/python2.6 (for architecture i386):        Mach-O executable i386

Aranas-BIG-Toy:2.6 arana$ which python
/usr/bin/python
Aranas-BIG-Toy:2.6 arana$ file /usr/bin/python
/usr/bin/python: Mach-O universal binary with 2 architectures
/usr/bin/python (for architecture x86_64):      Mach-O 64-bit executable x86_64
/usr/bin/python (for architecture i386):        Mach-O executable i386

Aranas-BIG-Toy:2.6 arana$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Library/Frameworks/Python.framework/Versions/Current/bin
Aranas-BIG-Toy:2.6 arana$ echo $PYTHONPATH

Aranas-BIG-Toy:2.6 arana$ 




On Jul 20, 2012, at 2:58 PM, pythonmac-sig-requ...@python.org wrote:
> 
> 
> From: Ned Deily <n...@acm.org>
> Subject: Re: [Pythonmac-SIG] PyQT on Lion?
> Date: July 20, 2012 2:38:03 PM EDT
> To: pythonmac-sig@python.org
> 
> 
> 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
> 
> 
> 
> 
> 
> From: Thomas Robitaille <thomas.robitai...@gmail.com>
> Subject: Re: [Pythonmac-SIG] PyQT on Lion?
> Date: July 20, 2012 2:56:47 PM EDT
> To: Arana Fireheart <aranafirehe...@mac.com>
> Cc: "pythonmac-sig@python.org" <pythonmac-sig@python.org>
> 
> 
> I use Macports to manage my Python installation on 10.6 and 10.7 and haven't 
> had any issues - and 'port install py27-pyqt4' works great.
> 
> See http://astrofrog.github.com/macports-python/ for more details on using 
> Python from Macports.
> 
> Macports is also now much faster than it used to be since binary builds are 
> available in many cases.
> 
> Cheers,
> Tom
> 
> On 20 Jul 2012, at 20:06, 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-packages/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
>> 
>> 
>> On Jul 16, 2012, at 4:51 PM, pythonmac-sig-requ...@python.org wrote:
>> 
>>> From: Arana Fireheart <aranafirehe...@mac.com>
>>> Subject: Re: [Pythonmac-SIG] PyQT on Lion? (Charlie Clark)
>>> Date: July 16, 2012 4:51:21 PM EDT
>>> To: pythonmac-sig@python.org
>>> 
>>> 
>>> Charlie,
>>> 
>>>     Thanks for the response. Part of the reason I was trying to use 
>>> virtualenv was to 'disconnect' from a few years of builds (some successful/ 
>>> some unsuccessful). I was hoping to avoid doing a 'clean install' of my 
>>> machine and reinstall of of the apps etc.
>>> 
>>>     The latest attempt is to perform a 'new' install of PyQT and then copy 
>>> the site-packages directory into the virtual environment (or possibly sym 
>>> link it). I think this one shows the most promise for getting an 
>>> environment that will not only run my PyQT apps but allow me to build a 
>>> distribution version with py2app (which I have NEVER managed to be able to 
>>> do!!)
>>> 
>>>     I'll let you all know how it goes, Iv'e got my finger's crossed!
>>> 
>>> Arana
>>> 
>>> 
>>> 
>>> On Jul 12, 2012, at 6:00 AM, pythonmac-sig-requ...@python.org wrote:
>>> 
>>>> Am 11.07.2012, 14:41 Uhr, schrieb Arana Fireheart <aranafirehe...@mac.com>:
>>>> 
>>>>> Charlie,
>>>>>   I tried virtualenv after reading lots of people extolling it's virtues. 
>>>>> Having had little luck with other methods I thought I would give it a 
>>>>> try. I have managed to get this all built on my MacBookPro which is 
>>>>> running Snow Leopard, but not on my desktop machine (iMac). HomeBrew 
>>>>> lists PyQT as installed, but when I try to run some code it fails with a 
>>>>> "can't find module".
>>>>>   What I don't get is why python can't locate the installed modules. Do 
>>>>> you have any hints as to how I can track this down?
>>>> 
>>>> Hi Arana,
>>>> 
>>>> virtualenv's are indeed a great idea. They allow you to isolate the
>>>> libraries for different projects from each other. However, if you are
>>>> using libraries that need compiling then it can be better to use "system"
>>>> libraries. You can do this in a virtualenv with the switch 
>>>> "--system-site-packages"
>>>> 
>>>> Charlie
>>>> -- 
>>>> Charlie Clark
>>>> Managing Director
>>>> Clark Consulting & Research
>>>> German Office
>>>> Kronenstr. 27a
>>>> Düsseldorf
>>>> D- 40217
>>>> Tel: +49-211-600-3657
>>>> Mobile: +49-178-782-6226
>>>> 
>>>> 
>>>> 
>>>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>>> 
>>> 
>>> 
>>> 
>>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>> 
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
> 
> 
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

_______________________________________________
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