Re: error: conflicting types for ‘Im agingJpegDecode’ while installing PIL on Mac OS

Steve Strassmann <[email protected]> Tue, 17 Jan 2012 00:38:26 -0500
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
Well, I might have been a bit too quick to celebrate.

It's true that MacPorts installs PIL successfully on Mac OS. I can run my (simple newbie) app
running the MacPort Python 2.7 that gets created. The problem is that my Tk windows
are now all X11-styled, which is very unfriendly to Mac users. Using macports:

$ /opt/local/bin/python2.7
>>> from Tkinter import Tk
>>> Tk().tk.call('tk', 'windowingsystem')
'x11'

Using the native Mac python environment gives me nice spiffy Mac-native windows, but no Imaging:

$ /usr/bin/python
>>> from Tkinter import Tk
>>> Tk().tk.call('tk', 'windowingsystem')
'aqua'

I tried simply copying the macports site-packages/PIL over to my native site-packages,
but running that crashes Tk.

How can I get a working python environment with Imaging that lets me create Tk apps
with the mac aqua GUI enabled?

thanks
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig