[Image-SIG] "ImportError: The _imaging C module is not installed."

Susi pancakes at snet.net
Sat May 7 01:03:44 CEST 2011


Hi,

I installed python 3.2 but with I try to run things with python3 I get a
symbol not found error for PyCObject_asVoidPtr... whatever that is... so I'm
going to stick with python.

Hmmm, okay. I tweaked the PIL install, then reran it, and made some
progress. In setup.py I changed *JPEG_ROOT = None* to *JPEG_ROOT =
libinclude("/usr/local")*

Hmm, the readout seems okay, though I don't know what FreeType2 is -

--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok

*** FREETYPE2 support not available
--------------------------------------


jpgs work now! But pngs still don't. "Unable to load background.png". The
png is definitely there; I've tried it on like six different ones ><.

Thanks for taking the time to look at this!!!!!!!!!!!!!!!!!!!




On Fri, May 6, 2011 at 2:37 PM, Christopher Barker <Chris.Barker at noaa.gov>wrote:

> On 5/6/11 1:38 PM, Susi wrote:
>
>> Hey! Thanks for your reply.
>>
>> I have OSX 10.6.7, Python comes on the mac, so I didn't install it.
>>
>
> Personally, I always use the python.org installer for Python, then often
> third party package binaries are available. Peruse the python-mac list for
> far more discussion of the trade offs than you'll ever want to read....
>
> But anyway, if you only want to run things on your own machine, then the
> Apple Python should be fine.
>
>  2.6.1. I installed PIL like this:
>>
>> |fink install libjpeg
>> curl -Ohttp://effbot.org/media/downloads/Imaging-1.1.6.tar.gz
>>
>>
>> tar -xzf Imaging-1.1.6.tar.gz
>> cd Imaging-1.1.6
>> sudo python setup.py install
>>
>
> Did you get any error messages or anything? I'm not sure that distutils is
> going to find fink-installed libraries without some tweeking. I also thought
> there was more than one extra lib needed, but maybe not these days.
>
> Anyway, take a careful look at the output to look for hints of problems.
>
> I also like to do:
>
> python setup.py build
>
> sudo python setup.py install
>
> so I can see what happens during build, and there is no need for sudo for
> the build step.
>
>
>  If you have any ideas, please let me know. I also had a question; is PIL
>> required for python to use images that aren't .bmps? Sorry, I'm totally
>> new. Thanks again if you reply!! :)
>>
>
> something is -- the standard lib doesn't have support for images -- PIL is
> the most widely used, and a nice choice.
>
>
> -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> Chris.Barker at noaa.gov
>



-- 
Don't sweat the petty things and don't pet the sweaty things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110506/63965fde/attachment.html>


More information about the Image-SIG mailing list