Friday, October 30, 2015

Read HFS+ from Linux

 The OS X filesystem, HFS+, by default is in read-only mode in my ubuntu.

 So I installed hfsprogs using
  
sudo apt-get install hfsprogs

 (you have to enable universe package-source)

 to mount the "Macintosh HD", use this

$cd 
$mkdir osx
$sudo mount -t hfsplus -o force,rw /dev/sda2 osx 


 Nevertheless, it still mounted as read-only, and some folders refused to open at all.

 Here the trick. We have to have same uid as the os x.

 so, create new user

sudo useradd -d /home/newuser -m -s /bin/bash -G root newuser

sudo passwd newuser

sudo usermod --uid 501 newuser

sudo chown -R 501:newuser /home/newuser
.

 by default the first user on OSX has an uid 501.

 Now, as we have the same uid on linux and OS X. We could freely read the filesystem.

Wednesday, October 28, 2015

#MelawanAsap



 Sepertinya tahun depan tidak akan ada kebakaran hutan,

 tak ada asap, 

 karena tak ada lagi yang bisa dibakar.





Monday, October 26, 2015

List Folders and Files Recursively using Google App Script.

 I got the problem because using 'recursive' as function name, :)

 At least now I know that, :)

 The next? Beautifying the result, :D 

.
function listFilesNFolders(form) {
  var list = [];
  var lv = 0;                    //lv for level or depth
  list.push(['tadaa...<br>']);
  list.push(['heheh...']);
  var row = [];
  row.push('<br> Hello World!!! ');
  list.push(row);
  
  var home = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); 
  list.push('<br>');
  list.push(home.getName());
  crawl(home,list,lv);
  return list;
}

//don't use 'recursive' as function name, it won't work
function crawl(home,list,lv){
  lv++;
  list.push('<br>tadaa...'+lv+'...');

  var files=home.getFiles();  
  while (files.hasNext()){
    var file=files.next();
    list.push('<br>f '+file.getName());
  }
  
  var folders=home.getFolders();
  while (folders.hasNext()){
    var folder=folders.next();
    list.push('<br>d '+folder.getName());
    
    crawl(folder,list,lv);
  }
}

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



.



Minggu Pagi.

 Sepuluh hari gak ketemu, :)








Saturday, October 24, 2015

#MelawanAsap

 Jika MotoGP Sepang gagal karena asap, maka Rossi cukup finish ketiga di Valencia untuk jadi juara dunia, :)

#MelawanAsap

 Trik Old Shatterhand di Llano Estacado untuk mendatangkan hujan sepertinya tak berhasil di sini.

 :(

 (ingat Karl May)

Friday, October 23, 2015

Global Variable on Google App Script

 I have trouble accessed it within function,

 so I pass it to every function,
 not so elegant solution, but it works, :) .

 In the code below, I have global variable named list.

 I have to passed as parameter on function dummy in order to edit its value or it wouldn't affected or have error message or undefined (I experienced both, :) )

function listFilesNFolders(form) {
  var list = [];
  list.push(['tadaa...<br>']);
  list.push(['heheh...']);
  var row = [];
  row.push('<br> Hello World!!! ');
  list.push(row);
  
  var home = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); 
  
  dummy('<br> test',list);
  return list;
}

function dummy(d,list){
  list.push(d);
}


The form

 <form id="myForm">
     <input type="submit" 
    value="OK"        
    onclick="
    this.value='Proses';
    google.script.run.withSuccessHandler(fileUploaded).listFilesNFolders(this.parentNode);
    return false;
 "
                    >
 </form>
.





Thursday, October 22, 2015

El Capitan 10.11.1

 :)

 Xcode update,
 iTunes,
 and Command Line Tools

#MelawanAsap



 Ini terjadi di Malang, bukan hutan, ini ladang tebu sehabis panen.

 Naik sepeda lewat beginian, hanya 20 meter terpapar asap, rasanya...

 Cuma sekian detik.

 Tak terbayangkan jika terpapar berbulan-bulan, di setiap tempat, di setiap waktu

List Files and Folder in Certain Folder in Google Drive using Google App Script

 Here it is.

 I used getFolderById() to determine the folder I want to list the files and folders inside.  I used home as variable name of the folder

 home.getFiles() is used to gets a collection of all files in home.

 home.getFolders() is used to gets a collection of all folders in home.

I have list and row  as array or tuple or 'list' to accommodate the result. Maybe it's wasting time to have two variable, but I plan to write code to list 'files and folders inside subfolders' recursively. I know maybe it didn't even need that array variable, :). But just in case...

Hold on, back up!


 Google App Script is fun, :)

 Here's my simple hello world, :)

What I did is create "form", which actually have no form at all, just submit button to activate listFilesNFolders(form) function on script (Code.gs file)

The code will return output 'tadaa...', 'heheh...', and 'Hello World!!!'.

Notice the html formatting, :)

Wednesday, October 21, 2015

#MelawanAsap


 Jika terus-terusan matahari tertutup asap hingga jadi berwarna orange atau malah tidak terlihat sama sekali, saya takut kalo tumbuhan tidak dapat berfotosintesis dengan sempurna dan tidak dapat menghasilkan oksigen yang optimal.

 Sesak karena asap, juga karena kurang oksigen.

 Eh, tunggu..., tumbuhan bukan tak maksimal berfotosintesis, tetapi tidak bisa lagi berfotosintesis, karena sudah jadi arang dan abu, :(

List All Files and Folders into Google Spreadsheet using Google App Script

 I updated my last code, so it will list all folders name too, in addition of files name.

 It will search the files and folders name in certain folder,

 get the name,

 the date it created,

 the size,

 the url address,

 thi file id,

 description,

 and the MIME type (except in folder, I hardcoded it by write string "folder")



 
function uploadFiles(form) {
  try {
    var dropbox = "Testing";
    var folders = DriveApp.getFoldersByName(dropbox);
    if (folders.hasNext()) {
      var folder = folders.next();
    } else {
      var folder = DriveApp.createFolder(dropbox);
    }
    folders = folder.getFoldersByName(form.myNIM);
    if(folders.hasNext()){
      var anak = folders.next();
    } else{
      var anak = folder.createFolder(form.myNIM);
    }
    var blob = form.myFile;    
    var file = anak.createFile(blob);    
    file.setDescription("Uploaded by " + form.myName);
   // listFilesAndFoldersInFolder(folder)
    list_all_files_and_folders_inside_one_folder_without_subfolders()
    return "File uploaded successfully " + file.getUrl();
    
  } catch (error) {
    
    return error.toString();
  }
  
}

function list_all_files_and_folders_inside_one_folder_without_subfolders(){
  var ss = SpreadsheetApp.openById("11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc");
  SpreadsheetApp.setActiveSpreadsheet(ss);
  var sh = SpreadsheetApp.getActiveSheet();
  sh.clear();
  var folder = DriveApp.getFolderById('0BxZS62a5NdNYUGxySmp2QW41OUU'); // I change the folder ID  here 
  var list = [];
  //list.push(['Name','ID','Size']);
  list.push(["Name", "Date", "Size", "URL", "Download", "Description", "MIME"]);

  var files = folder.getFiles();
  while (files.hasNext()){
    file = files.next();
    var row = []
    //row.push(file.getName(),file.getId(),file.getSize());
    row.push(file.getName(),
             file.getDateCreated(),
             file.getSize(),
             file.getUrl(),
            "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
             file.getDescription(),file.getMimeType())
     
    list.push(row);
  }
  var files = folder.getFolders();
  while (files.hasNext()){
    file = files.next();
    var row = []
    //row.push(file.getName(),file.getId(),file.getSize());
    row.push(file.getName(),
             file.getDateCreated(),
             file.getSize(),
             file.getUrl(),
            "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
             file.getDescription(),"folder")
     
    list.push(row);
  }
  
   sh.getRange(1,1,list.length,list[0].length).setValues(list);
  
}

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



Working with Google Script

 I heard it's powerful,
 it could be integrated with Google Drive,
 so I decided to give it a try.

 Try to make a form Name, NIM, Offering, and a button to upload a file.

 Basically, it's super simple form.

 It will upload file to my Google Drive, place it in folder NIM (or create it if there's no folder match with NIM).

 As addition, I created spreadsheet manually and update its content, the list of files in the folders. (still got a trouble)
 
function uploadFiles(form) {
  
  try {
    
    var dropbox = "Testing";
    var folders = DriveApp.getFoldersByName(dropbox);
    
    if (folders.hasNext()) {
      var folder = folders.next();
    } else {
      var folder = DriveApp.createFolder(dropbox);
    }
    
    folders = folder.getFoldersByName(form.myNIM);
    if(folders.hasNext()){
      var anak = folders.next();
    } else{
      var anak = folder.createFolder(form.myNIM);
    }
    
    
    var blob = form.myFile;    
    var file = anak.createFile(blob);    
    file.setDescription("Uploaded by " + form.myName);
 
    
    listFilesInFolder(folder)
    
        
    return "File uploaded successfully " + file.getUrl();
    
  } catch (error) {
    
    return error.toString();
  }
  
}

function listFilesInFolder(folderName) {
 
  //var ssNew = SpreadsheetApp.create("Rekap");
  //https://drive.google.com/open?id=11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc
  //https://docs.google.com/spreadsheets/d/11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc/edit#gid=0
  //var ss = SpreadsheetApp.openByUrl('https://docs.google.com/spreadsheets/d/abc1234567/edit');
  var ss = SpreadsheetApp.openById("11AzGyCcWfvcE_mUltyjAx17wJDghOS-YH5e_zrHT-zc");
 
  SpreadsheetApp.setActiveSpreadsheet(ss);
  
  var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  
  /*
  var myNewSheet = activeSpreadsheet.getSheetByName("Rekap");

  if (myNewSheet != null) {
        activeSpreadsheet.deleteSheet(myNewSheet);
  }

  myNewSheet = activeSpreadsheet.insertSheet();
  myNewSheet.setName("Rekap");
    
  */
  //0BxZS62a5NdNYUGxySmp2QW41OUU
  //var folder = DriveApp.getFoldersByName(folderName).next();
  var id = '0BxZS62a5NdNYUGxySmp2QW41OUU';
  var folder = DriveApp.getFolderById(id);
  var contents = folder.getFiles();
  
  var file, data, sheet = SpreadsheetApp.getActiveSheet();
  sheet.clear();
  
  sheet.appendRow(["Name", "Date", "Size", "URL", "Download", "Description", "Type"]);
  //sheet.appendRow(["Tadaa..."])
  for (var i = 0; i < contents.length; i++) {
 
    file = contents[i];
    
    if (file.getFileType() == "SPREADSHEET") {
      continue;
    }
        
    data = [ 
      file.getName(),
      file.getDateCreated(),
      file.getSize(),
      file.getUrl(),
      "https://docs.google.com/uc?export=download&confirm=no_antivirus&id=" + file.getId(),
      file.getDescription(),
      file.getFileType().toString()
    ];
    
    sheet.appendRow(data);
  
  }
  
};

function doGet(e) {
  return HtmlService.createHtmlOutputFromFile('form.html');
}



Tuesday, October 20, 2015

#MelawanAsap

 Pake jasa pawang hujan seluruh Indonesia?

Working with Audio in Python

 What I did is read a .wav file, extract the raw audio data, (I use first 1/20 data for sample), transform it using Fast Fourier Transform, manipulate it (I only use the first cluster frequency spectrum ), transform it back using InverseFFT.

 I use matplotlib and numpy module to plot and compute.

 I also use sys and wave module as 'interface'.


import matplotlib.pyplot as plt
import numpy as np
import wave
import sys


spf = wave.open('violin2.wav','r')

#Extract Raw Audio from Wav File
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
fs = spf.getframerate()
print fs

#If Stereo
if spf.getnchannels() == 2:
    print 'Just mono files'
    sys.exit(0)

Time=np.linspace(0, len(signal)/fs, num=len(signal))
sample = []
st=[]
for i in np.arange(len(signal)/20):
    sample.append( signal[i])
    st.append(Time[i])

ft=np.fft.fft(sample)
pft=[]
for i in np.arange(len(ft)):
    if i<500: data-blogger-escaped-ample="" data-blogger-escaped-else:="" data-blogger-escaped-from="" data-blogger-escaped-ft="" data-blogger-escaped-i="" data-blogger-escaped-ift="" data-blogger-escaped-ignal="" data-blogger-escaped-ime="" data-blogger-escaped-pft.append="" data-blogger-escaped-pft="" data-blogger-escaped-plt.figure="" data-blogger-escaped-plt.grid="" data-blogger-escaped-plt.plot="" data-blogger-escaped-plt.show="" data-blogger-escaped-plt.title="" data-blogger-escaped-pre="" data-blogger-escaped-rue="" data-blogger-escaped-sample="" data-blogger-escaped-signal="" data-blogger-escaped-st="" data-blogger-escaped-wave...="">
.

Monday, October 19, 2015

Future, PIL, Numpy and Pylab in Python

 I use it to load an image,
 convert to grayscale,
 read the value of every pixel,
 print it,
 create the diagonal cross section and record the value
 and then plot it.

 Yeah, that's the story of code below


from __future__ import  print_function
from PIL import  Image
import numpy as np
from pylab import *

im  = Image.open("gb/lena.jpg",'r')
gr  = im.convert('L')
a   = im.load()
#b   = gr.load()
b   =np.asarray(gr.getdata(),dtype=np.float64).reshape((gr.size[1],gr.size[0]))

c = []
for i in arange(len(b[0])):
    c.append(b[i][i])

b   =np.asarray(b,dtype=np.uint8)


img = Image.fromarray(b,mode='L')
img.save('gb/gray.jpg')

print('a[0,0]    = ',a[0,0])
print('a[0,0][0] = ',a[0,0][0])
print('a[0,0][1] = ',a[0,0][1])
print('a[0,0][2] = ',a[0,0][2])
print(b[0,0])

plot (c)

xlabel('i')
ylabel('A')
title('cross section')
grid(True)
savefig("gb/test.png")
show()

.




:)

 Melihat koreografi Bruno Mars dan The Hooligans, jadinya malah teringat Rhoma Irama dan Soneta

Sunday, October 18, 2015

Read Pixel Value of Image using Python and PIL Module

 Open the Image to im using Image.open() syntax

 Load the value of im into a and now we have 2D tuple and live become easier, :)

.
from __future__ import  print_function
from PIL import  Image

im = Image.open("gb/lena.jpg")
a = im.load()

print('a[0,0]    = ',a[0,0])
print('a[0,0][0] = ',a[0,0][0])
print('a[0,0][1] = ',a[0,0][1])
print('a[0,0][2] = ',a[0,0][2])

If we run it


Nugrohos-MacBook-Air:citra nugroho$ python readIm.py 
a[0,0]    =  (226, 161, 119)
a[0,0][0] =  226
a[0,0][1] =  161
a[0,0][2] =  119
  .

Python Imaging Library on El Capitan

 Here's what I'm doing on EL Capitan.

 I have GCC come with Xcode but I use GCC 5.2.

 We could build from source; download the source at http://effbot.org/downloads/Imaging-1.1.7.tar.gz   and extract it


Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-intel-2.7
copying PIL/__init__.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ArgImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BdfFontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BmpImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ContainerIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/CurImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/DcxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/EpsImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ExifTags.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FliImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/FpxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GbrImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GdImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GifImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GimpGradientFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GimpPaletteFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/GribStubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IcnsImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IcoImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/Image.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageChops.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageCms.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageColor.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageDraw.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageDraw2.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageEnhance.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFileIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFilter.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageFont.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageGL.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageGrab.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageMath.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageMode.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageOps.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImagePalette.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImagePath.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageQt.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageSequence.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageShow.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageStat.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageTk.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageTransform.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImageWin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/ImtImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/IptcImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/JpegImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/McIdasImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MicImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MpegImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/MspImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/OleFileIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PaletteFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PalmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcdImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcfFontFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PcxImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PdfImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PixarImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PngImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PpmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PsdImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/PSDraw.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SgiImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SpiderImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/SunImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TarIO.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TgaImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TiffImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/TiffTags.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/WalImageFile.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/WmfImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XbmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XpmImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
copying PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.6-intel-2.7
running build_ext
--- using frameworks at /Library/Frameworks
building '_imaging' extension
creating build/temp.macosx-10.6-intel-2.7
creating build/temp.macosx-10.6-intel-2.7/libImaging
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imaging.c -o build/temp.macosx-10.6-intel-2.7/_imaging.o
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) image_length, /*sq_length*/
    ^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) NULL, /*mp_length*/
    ^~~~~~~~~~~~~~
2 warnings generated.
_imaging.c:3017:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) image_length, /*sq_length*/
    ^~~~~~~~~~~~~~~~~~~~~~
_imaging.c:3077:5: warning: incompatible pointer types initializing 'lenfunc'
      (aka 'Py_ssize_t (*)(PyObject *)') with an expression of type 'inquiry'
      (aka 'int (*)(PyObject *)') [-Wincompatible-pointer-types]
    (inquiry) NULL, /*mp_length*/
    ^~~~~~~~~~~~~~
2 warnings generated.
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c decode.c -o build/temp.macosx-10.6-intel-2.7/decode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c encode.c -o build/temp.macosx-10.6-intel-2.7/encode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c map.c -o build/temp.macosx-10.6-intel-2.7/map.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c display.c -o build/temp.macosx-10.6-intel-2.7/display.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c outline.c -o build/temp.macosx-10.6-intel-2.7/outline.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c path.c -o build/temp.macosx-10.6-intel-2.7/path.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Access.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Access.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Antialias.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Antialias.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Bands.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Bands.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/BitDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/BitDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Blend.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Blend.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Chops.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Chops.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Convert.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Convert.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ConvertYCbCr.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ConvertYCbCr.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Copy.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Copy.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Crc32.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Crc32.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Crop.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Crop.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Dib.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Dib.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Draw.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Draw.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Effects.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Effects.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/EpsEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/EpsEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/File.c -o build/temp.macosx-10.6-intel-2.7/libImaging/File.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Fill.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Fill.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Filter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Filter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/FliDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/FliDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Geometry.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Geometry.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GetBBox.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GetBBox.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GifDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GifDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/GifEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/GifEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/HexDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/HexDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Histo.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Histo.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/JpegDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/JpegDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/JpegEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/JpegEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/LzwDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/LzwDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Matrix.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Matrix.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ModeFilter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ModeFilter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/MspDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/MspDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Negative.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Negative.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Offset.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Offset.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Pack.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Pack.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PackDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PackDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Palette.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Palette.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Paste.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Paste.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Quant.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Quant.o
libImaging/Quant.c:154:10: warning: cast to 'void *' from smaller integer type
      'int' [-Wint-to-void-pointer-cast]
   *valp=(void *)((*(int *)valp)+(*(int *)&newval));
         ^
1 warning generated.
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/QuantHash.c -o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHash.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/QuantHeap.c -o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHeap.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcdDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcdDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcxDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcxDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/PcxEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/PcxEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Point.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Point.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RankFilter.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RankFilter.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RawDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RawDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/RawEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/RawEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Storage.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Storage.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/SunRleDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/SunRleDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/TgaRleDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/TgaRleDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/Unpack.c -o build/temp.macosx-10.6-intel-2.7/libImaging/Unpack.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/UnpackYCC.c -o build/temp.macosx-10.6-intel-2.7/libImaging/UnpackYCC.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/UnsharpMask.c -o build/temp.macosx-10.6-intel-2.7/libImaging/UnsharpMask.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/XbmDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/XbmDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/XbmEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/XbmEncode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ZipDecode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ZipDecode.o
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_LIBZ -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c libImaging/ZipEncode.c -o build/temp.macosx-10.6-intel-2.7/libImaging/ZipEncode.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imaging.o build/temp.macosx-10.6-intel-2.7/decode.o build/temp.macosx-10.6-intel-2.7/encode.o build/temp.macosx-10.6-intel-2.7/map.o build/temp.macosx-10.6-intel-2.7/display.o build/temp.macosx-10.6-intel-2.7/outline.o build/temp.macosx-10.6-intel-2.7/path.o build/temp.macosx-10.6-intel-2.7/libImaging/Access.o build/temp.macosx-10.6-intel-2.7/libImaging/Antialias.o build/temp.macosx-10.6-intel-2.7/libImaging/Bands.o build/temp.macosx-10.6-intel-2.7/libImaging/BitDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Blend.o build/temp.macosx-10.6-intel-2.7/libImaging/Chops.o build/temp.macosx-10.6-intel-2.7/libImaging/Convert.o build/temp.macosx-10.6-intel-2.7/libImaging/ConvertYCbCr.o build/temp.macosx-10.6-intel-2.7/libImaging/Copy.o build/temp.macosx-10.6-intel-2.7/libImaging/Crc32.o build/temp.macosx-10.6-intel-2.7/libImaging/Crop.o build/temp.macosx-10.6-intel-2.7/libImaging/Dib.o build/temp.macosx-10.6-intel-2.7/libImaging/Draw.o build/temp.macosx-10.6-intel-2.7/libImaging/Effects.o build/temp.macosx-10.6-intel-2.7/libImaging/EpsEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/File.o build/temp.macosx-10.6-intel-2.7/libImaging/Fill.o build/temp.macosx-10.6-intel-2.7/libImaging/Filter.o build/temp.macosx-10.6-intel-2.7/libImaging/FliDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Geometry.o build/temp.macosx-10.6-intel-2.7/libImaging/GetBBox.o build/temp.macosx-10.6-intel-2.7/libImaging/GifDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/GifEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/HexDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Histo.o build/temp.macosx-10.6-intel-2.7/libImaging/JpegDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/JpegEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/LzwDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Matrix.o build/temp.macosx-10.6-intel-2.7/libImaging/ModeFilter.o build/temp.macosx-10.6-intel-2.7/libImaging/MspDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Negative.o build/temp.macosx-10.6-intel-2.7/libImaging/Offset.o build/temp.macosx-10.6-intel-2.7/libImaging/Pack.o build/temp.macosx-10.6-intel-2.7/libImaging/PackDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Palette.o build/temp.macosx-10.6-intel-2.7/libImaging/Paste.o build/temp.macosx-10.6-intel-2.7/libImaging/Quant.o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHash.o build/temp.macosx-10.6-intel-2.7/libImaging/QuantHeap.o build/temp.macosx-10.6-intel-2.7/libImaging/PcdDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/PcxDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/PcxEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/Point.o build/temp.macosx-10.6-intel-2.7/libImaging/RankFilter.o build/temp.macosx-10.6-intel-2.7/libImaging/RawDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/RawEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/Storage.o build/temp.macosx-10.6-intel-2.7/libImaging/SunRleDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/TgaRleDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/Unpack.o build/temp.macosx-10.6-intel-2.7/libImaging/UnpackYCC.o build/temp.macosx-10.6-intel-2.7/libImaging/UnsharpMask.o build/temp.macosx-10.6-intel-2.7/libImaging/XbmDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/XbmEncode.o build/temp.macosx-10.6-intel-2.7/libImaging/ZipDecode.o build/temp.macosx-10.6-intel-2.7/libImaging/ZipEncode.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -lz -o build/lib.macosx-10.6-intel-2.7/_imaging.so
building '_imagingtk' extension
creating build/temp.macosx-10.6-intel-2.7/Tk
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imagingtk.c -o build/temp.macosx-10.6-intel-2.7/_imagingtk.o -framework Tcl -framework Tk
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Tk/tkImaging.c -o build/temp.macosx-10.6-intel-2.7/Tk/tkImaging.o -framework Tcl -framework Tk
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imagingtk.o build/temp.macosx-10.6-intel-2.7/Tk/tkImaging.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -o build/lib.macosx-10.6-intel-2.7/_imagingtk.so -framework Tcl -framework Tk
building '_imagingmath' extension
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -IlibImaging -I/Library/Frameworks/Python.framework/Versions/2.7/include -I/usr/local/include -I/usr/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _imagingmath.c -o build/temp.macosx-10.6-intel-2.7/_imagingmath.o
/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/_imagingmath.o -L/usr/local/lib -L/Library/Frameworks/Python.framework/Versions/2.7/lib -L/usr/lib -o build/lib.macosx-10.6-intel-2.7/_imagingmath.so
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      darwin 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
              [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
--------------------------------------------------------------------
--- TKINTER support available
*** JPEG support not available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
running build_scripts
creating build/scripts-2.7
copying and adjusting Scripts/pilconvert.py -> build/scripts-2.7
copying and adjusting Scripts/pildriver.py -> build/scripts-2.7
copying and adjusting Scripts/pilfile.py -> build/scripts-2.7
copying Scripts/pilfont.py -> build/scripts-2.7
copying and adjusting Scripts/pilprint.py -> build/scripts-2.7
changing mode of build/scripts-2.7/pilconvert.py from 644 to 755
changing mode of build/scripts-2.7/pildriver.py from 644 to 755
changing mode of build/scripts-2.7/pilfile.py from 644 to 755
changing mode of build/scripts-2.7/pilfont.py from 644 to 755
changing mode of build/scripts-2.7/pilprint.py from 644 to 755
running install_lib
creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/__init__.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imaging.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imagingmath.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/_imagingtk.so -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ArgImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BdfFontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BmpImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/BufrStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ContainerIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/CurImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/DcxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/EpsImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ExifTags.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FitsStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FliImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/FpxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GbrImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GdImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GifImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GimpGradientFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GimpPaletteFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/GribStubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/Hdf5StubImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IcnsImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IcoImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/Image.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageChops.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageCms.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageColor.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageDraw.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageDraw2.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageEnhance.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFileIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFilter.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageFont.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageGL.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageGrab.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageMath.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageMode.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageOps.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImagePalette.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImagePath.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageQt.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageSequence.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageShow.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageStat.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageTk.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageTransform.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImageWin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/ImtImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/IptcImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/JpegImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/McIdasImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MicImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MpegImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/MspImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/OleFileIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PaletteFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PalmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcdImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcfFontFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PcxImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PdfImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PixarImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PngImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PpmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PsdImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/PSDraw.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SgiImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SpiderImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/SunImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TarIO.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TgaImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TiffImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/TiffTags.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/WalImageFile.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/WmfImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XbmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XpmImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
copying build/lib.macosx-10.6-intel-2.7/XVThumbImagePlugin.py -> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/__init__.py to __init__.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ArgImagePlugin.py to ArgImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BdfFontFile.py to BdfFontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BmpImagePlugin.py to BmpImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/BufrStubImagePlugin.py to BufrStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ContainerIO.py to ContainerIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/CurImagePlugin.py to CurImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/DcxImagePlugin.py to DcxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/EpsImagePlugin.py to EpsImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ExifTags.py to ExifTags.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FitsStubImagePlugin.py to FitsStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FliImagePlugin.py to FliImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FontFile.py to FontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/FpxImagePlugin.py to FpxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GbrImagePlugin.py to GbrImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GdImageFile.py to GdImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GifImagePlugin.py to GifImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GimpGradientFile.py to GimpGradientFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GimpPaletteFile.py to GimpPaletteFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/GribStubImagePlugin.py to GribStubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Hdf5StubImagePlugin.py to Hdf5StubImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IcnsImagePlugin.py to IcnsImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IcoImagePlugin.py to IcoImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py to Image.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageChops.py to ImageChops.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageCms.py to ImageCms.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageColor.py to ImageColor.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageDraw.py to ImageDraw.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageDraw2.py to ImageDraw2.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageEnhance.py to ImageEnhance.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFile.py to ImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFileIO.py to ImageFileIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFilter.py to ImageFilter.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageFont.py to ImageFont.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageGL.py to ImageGL.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageGrab.py to ImageGrab.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageMath.py to ImageMath.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageMode.py to ImageMode.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageOps.py to ImageOps.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImagePalette.py to ImagePalette.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImagePath.py to ImagePath.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageQt.py to ImageQt.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageSequence.py to ImageSequence.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageShow.py to ImageShow.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageStat.py to ImageStat.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTk.py to ImageTk.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageTransform.py to ImageTransform.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImageWin.py to ImageWin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImImagePlugin.py to ImImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/ImtImagePlugin.py to ImtImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/IptcImagePlugin.py to IptcImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/JpegImagePlugin.py to JpegImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/McIdasImagePlugin.py to McIdasImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MicImagePlugin.py to MicImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MpegImagePlugin.py to MpegImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/MspImagePlugin.py to MspImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/OleFileIO.py to OleFileIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PaletteFile.py to PaletteFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PalmImagePlugin.py to PalmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcdImagePlugin.py to PcdImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcfFontFile.py to PcfFontFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PcxImagePlugin.py to PcxImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PdfImagePlugin.py to PdfImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PixarImagePlugin.py to PixarImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PngImagePlugin.py to PngImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PpmImagePlugin.py to PpmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PsdImagePlugin.py to PsdImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PSDraw.py to PSDraw.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SgiImagePlugin.py to SgiImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SpiderImagePlugin.py to SpiderImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/SunImagePlugin.py to SunImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TarIO.py to TarIO.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TgaImagePlugin.py to TgaImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TiffImagePlugin.py to TiffImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/TiffTags.py to TiffTags.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/WalImageFile.py to WalImageFile.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/WmfImagePlugin.py to WmfImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XbmImagePlugin.py to XbmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XpmImagePlugin.py to XpmImagePlugin.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/XVThumbImagePlugin.py to XVThumbImagePlugin.pyc
running install_scripts
copying build/scripts-2.7/pilconvert.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pildriver.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilfile.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilfont.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
copying build/scripts-2.7/pilprint.py -> /Library/Frameworks/Python.framework/Versions/2.7/bin
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilconvert.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pildriver.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilfile.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilfont.py to 755
changing mode of /Library/Frameworks/Python.framework/Versions/2.7/bin/pilprint.py to 755
running install_egg_info
Writing /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/PIL-1.1.7-py2.7.egg-info
creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL.pth
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ 

Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> 


or using pip, you'll get Pillow, a fork of PIL


Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ pip install image
Collecting image
  Downloading image-1.4.1.tar.gz
Collecting pillow (from image)
  Downloading Pillow-3.0.0-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (2.9MB)
    100% |################################| 2.9MB 68kB/s 
Collecting django (from image)
  Downloading Django-1.8.5-py2.py3-none-any.whl (6.2MB)
    100% |################################| 6.2MB 39kB/s 
Installing collected packages: pillow, django, image
  Running setup.py install for image
Successfully installed django-1.8.5 image-1.4.1 pillow-3.0.0
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ 
Nugrohos-MacBook-Air:Imaging-1.1.7 nugroho$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> im=Image.open("lena.ppm")
Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'Imagemage' is not defined
>>> im=Image.open("lena.ppm")
Traceback (most recent call last):
  File "", line 1, in 
  File "PIL/Image.py", line 1952, in open
    fp = __builtin__.open(fp, "rb")
IOError: [Errno 2] No such file or directory: 'lena.ppm'
>>> im=Image.open("Images/lena.ppm")
>>> from __future__ import print_function
>>> print(im.format,im.size,im.mode)
PPM (128, 128) RGB
>>> im.show()
>>> 


.

Here's the output