In article <7a6b804d-970e-4000-b540-a79a84257...@mac.com>,
 Arana Fireheart <aranafirehe...@mac.com> wrote:
>       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... ???

> 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

I know nothing about PyQt4 and I don't know which Python you should be 
using but what the above says is that you are using a non-system Python 
2.6 that is 32-bit-only and you've installed to it a version of PyQt4 
whose extension module QtCore is built only for 64-bit.  So, yeah, that 
won't work.

All I can do is to echo Tom's earlier advice to use a package manager 
like MacPorts for a complete solution including Python.  Trying to build 
and install projects on OS X with multiple dependencies on third-party 
libraries is fraught with gotchas as you are seeing.  Let someone else 
do the hard work of integrating all the pieces.  There may be a little 
time at the beginning to get used to the package manager's quirks but it 
will almost certainly pay off in the long run.

-- 
 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