osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: Re: jpeg under PIL? - msg#00133

List: python.apple

Date: Prev Next Index Thread: Prev Next Index
curl http://undefined.org/python/darwinjpeg.tgz > darwinjpeg.tgz
tar zxvf darwinjpeg.tgz
sudo cp darwinjpeg/libjpeg.a /usr/local/lib/
sudo ranlib /usr/local/lib/libjpeg.a
sudo mkdir /usr/local/include
sudo cp darwinjpeg/j*.h /usr/local/include/
curl http://effbot.org/downloads/Imaging-1.1.4.tar.gz > Imaging-1.1.4.tar.gz
tar zxvf Imaging-1.1.4.tar.gz
cd Imaging-1.1.4/libImaging
./configure
make
cd ..
sudo python2.3 setup.py build_ext -i
sudo cp -r PIL PIL.pth `python2.3 -c "import sys;print filter(lambda x:x.endswith('site-packages'), sys.path)[0]"`
cd ..
sudo rm -rf darwinjpeg.tgz darwinjpeg Imaging-1.1.4.tar.gz Imaging-1.1.4

That should do the trick, it should work on a bare Panther machine, a Jaguar machine with Python 2.3, and may even work for Apple Python 2.2.0 (of course, replace every python2.3 with just python).

It may complain if you have a framework Tcl/Tk installed, but it should've compiled _imaging.so first anyways and will probably function properly if you just ignore the error and copy it over to site-packages anyways. If any of the steps give an error like "directory already exists" or "dib.o has no symbols" or something like that, it's not really an error.. just go on.

-bob

On Friday, Jun 27, 2003, at 14:12 America/New_York, Bugbee, Larry wrote:

I too am having no joy with jpeg under PIL. Any clues?

Larry



-----Original Message-----
From: Calvin [mailto:calvin@xxxxxxxxxxxx]
Sent: Friday, June 27, 2003 8:49 AM
To: Winnfried Hasel
Cc: pythonmac-sig@xxxxxxxxxx
Subject: Re: [Pythonmac-SIG] Re:Retroactively adding readline support to
OS X


[snip]


I Still haven't got PIL with jpeg
support installed, but that's another story.

-calvin

_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig

_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig


_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig



Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

jpeg under PIL?

I too am having no joy with jpeg under PIL. Any clues? Larry -----Original Message----- From: Calvin [mailto:calvin@xxxxxxxxxxxx] Sent: Friday, June 27, 2003 8:49 AM To: Winnfried Hasel Cc: pythonmac-sig@xxxxxxxxxx Subject: Re: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X [snip] I Still haven't got PIL with jpeg support installed, but that's another story. -calvin _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig

Next Message by Date: click to view message preview

Retroactively adding WASTE support to OS X Python 2.3b1

http://undefined.org/python/waste_for_python2.3.tgz -- (I'm lazy, this is the readme) -- This setup.py will retroactively build/install the WASTE module for Python 2.3b1 if you do not already have it. This would happen if you compiled Python 2.3b1 without getting WASTE first, or if Apple did ;) The real reason to install this module would be to use PythonIDE. To install: get waste from http://www.merzwaren.com/bin/waste/waste-21b1.sit unstuff waste-21b1.sit mount the WASTE disk image ( waste-21b1-distribution.img ) sudo python2.3 setup.py install This archive contains code from Python CVS, and all code in this archive is under the same license as Python unless explicitly stated otherwise. To run PythonIDE (test if it worked): (drop the /System if you're using a non-Apple version of Python 2.3b1) pythonw2.3 /System/Library/Frameworks/Python.framework/Versions/2.3/Mac/Tools/IDE/ PythonIDE.py - bob _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig

Previous Message by Thread: click to view message preview

jpeg under PIL?

I too am having no joy with jpeg under PIL. Any clues? Larry -----Original Message----- From: Calvin [mailto:calvin@xxxxxxxxxxxx] Sent: Friday, June 27, 2003 8:49 AM To: Winnfried Hasel Cc: pythonmac-sig@xxxxxxxxxx Subject: Re: [Pythonmac-SIG] Re:Retroactively adding readline support to OS X [snip] I Still haven't got PIL with jpeg support installed, but that's another story. -calvin _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig

Next Message by Thread: click to view message preview

Re: jpeg under PIL?

> sudo ranlib /usr/local/lib/libjpeg.a ah ranlib. Over a year ago you helped me with this very problem. And as I now have time (it being a weekend and all) to dig through my old notes and email messages you've saved me the trouble by posting the answer. thank you. I did a standard PIL install after the ranlib with no problems. Thank you very much. Is it possible that these recurring problems will be fixed in the future? I almost went back to 2.2 because installing, python, mysql, pil with jpeg, readline, worked so well the last few times I did it. Will readline support be part of 10.3? Why isn't jpeg support just part of standard PIL? I haven't had a problem with MySQLdb since 10.0, but readline and jpeg-PIL keep popping up. just curious. Thanks again. -calvin ps. where is that tip jar? _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx http://mail.python.org/mailman/listinfo/pythonmac-sig
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by