Most likely what happened is that you sip and qt are not built with
the same arch.
Can you reply with the results of this?
lipo -info 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/sip.so

Most likely what you want to do is rebuilt sip, but use these flags:
python configure.py --arch="386" --arch="x86_64"

That way it will built 32 and 64bit. Then reinstall pyqt.

-- justin



2011/10/4 宇 <[email protected]>:
> forget to post my tools
> i use
> Mac OS X (Snow Leopard)
> python-2.6.4
> sip-4.12.5
> PyQt-mac-gpl-4.8.5
>
> On 10月4日, 下午9时43分, 宇 <[email protected]> wrote:
>> hi, i got a problem when i was installing PyQt4 on mac, first i
>> installed sip-4.12.5 for python, but i got an error when i import the
>> sip module.
>>
>> >>> import sip
>>
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/
>> lib/python2.6/site-packages/sip.so, 2): no suitable image found.  Did
>> find:
>>         /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
>> packages/sip.so: mach-o, but wrong architecture
>> i reinstalled the sip many times, and does anybody can help me?
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to