Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

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.

2010-07-13

NotImplementedError: Unable to find the Python PIL library

I have been playing with Google App engine on both mac and windows and in both cases when using images.resize I get the following error:
NotImplementedError: Unable to find the Python PIL library.  Please view the SDK documentation for details about installing PIL on your system.
After using my friend Google I found the solution.

For Mac OSX:
  1. Open to Terminal by navigating to your Applications folder, open Utilities, and double click on Terminal. You will be greeted with a message similar to this:
    Last login: Tue Mar 6 17:21:36 on console
    Welcome to Darwin!
    imac:~ Matt$
  2. Type in "sudo easy_install --find-links http://www.pythonware.com/products/pil/ Imaging" into the Terminal and press enter.
  3. Enter in your password when prompted and then you are done.
For Windows:
  1. Download "Python Imaging Library 1.1.7 for Python 2.6" from their website and install.
  2. Reboot and then you are done.
Simple huh?