PIL build error on Snow Leopard

X

Xiao

Hello,

I haven't fully understood the nuances in the difference between
Apple's system Python and MacPython. But I have just installed Python
2.6.4 from python.org. Now I'm trying to install a fresh downloaded
PIL 1.1.6 but couldn't.
python setup.py install gives:
lipo: can't open input file: /var/tmp//ccfwpQd6.out (No such file or
directory)
Everything worked fine on Apple's Python 2.6.1
 
N

Ned Deily

I haven't fully understood the nuances in the difference between
Apple's system Python and MacPython. But I have just installed Python
2.6.4 from python.org. Now I'm trying to install a fresh downloaded
PIL 1.1.6 but couldn't.
python setup.py install gives:
lipo: can't open input file: /var/tmp//ccfwpQd6.out (No such file or
directory)
Everything worked fine on Apple's Python 2.6.1

Building PIL on OS X is annoyingly non-trivial and this subject is one
that comes up frequently on the Mac python list
(http://dir.gmane.org/gmane.comp.python.apple); you may want to search
the archives or ask further questions there. Typically, the problem is
that PIL depends on some libraries that do not ship with OS X and you
need to provide them in the proper architectures to satisfy the python
build you are using.

The easiest approach is to use a complete solution from MacPorts since
it includes PIL and python2.6 ports:

$ sudo port py26-pil

will pull in and build everything including a new python2.6. If you'd
rather not do that, you can use MacPorts or Fink to build the necessary
libraries. Another approach that should work (but I haven't tested on
10.6) is to install the UnixImageIO and FreeType frameworks from here:

http://www.kyngchaos.com/software:frameworks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top