2011-03-29

Pyamf Not Installing for Tipfy

I have spent the last three days trying to get Pyamf to work in tipfy to no avail, every time I try I got an error saying it could not compile.
AMF-0.6.1/distribute-0.6.14-py2.5.egg
WARNING: Could not build extension for 'temp.tmpla7hzZ.distribute-0.6.14.tests.shlib_test.hello', no source found
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/_build'
warning: no previously-included files matching '*.swf' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
cpyamf/amf0.c:9329: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/folders/lP/lPvYUKh7FLinUlJcZuddfE+++TI/-Tmp-//ccxqbDjN.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
An error occurred when trying to install PyAMF 0.6.1. Look above this message for any errors that were output by easy_install.
While:
  Updating app_lib.
  Getting distribution for 'pyamf'.
Error: Couldn't install: PyAMF 0.6.1
It was driving me insane that was until this morning when I actually read the error and changed was I was searching for, after a while I found a simular error and with a little guess work I came up with the following:
sudo env ARCHFLAGS="-arch i386 -arch x86_64" easy_install multiprocessing
And thats it.

1 comment:

  1. Thank you, thank you, thank you! Your solution is the only which worked for me from many others!

    ReplyDelete