List Info

Thread: problems with selftest on OS X intel XServe




problems with selftest on OS X intel XServe
country flaguser name
United States
2007-02-22 17:13:00
Hi all,

I'm trying to build PIL to include it in python for support
of a 
zope/plone installation.  All my tests so far have been on a
dev machine 
with the pre-built binaries, which include PIL.  Now I'm
working on my 
server, a new Intel XServe box running OS X 10.4.8.

I'm working with a compiled installation of Python 2.4.4,
built earlier 
today from source.

Running
$ python2.4 setup.py build_ext -i
works just fine, I get all the expected output, including
the information 
that support for my required features is okay:

------------------------------------------------------------
--------
PIL 1.1.6 BUILD SUMMARY
------------------------------------------------------------
--------
version       1.1.6
platform      darwin 2.4.4 (#1, Feb 22 2007, 10:42:01)
               [GCC 4.0.1 (Apple Computer, Inc. build
5367)]
------------------------------------------------------------
--------
--- TKINTER support ok
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
------------------------------------------------------------
--------

Great!  So I run selftest.py and it fails with the following
output:

************************************************************
*****
Failure in example:
_info(Image.open("Images/lena.jpg"))
from line #24 of selftest.testimage
Exception raised:
Traceback (most recent call last):
   File "./doctest.py", line 499, in
_run_examples_inner
     exec compile(source, "<string>",
"single") in globs
   File "<string>", line 1, in ?
   File "./selftest.py", line 22, in _info
     im.load()
   File "PIL/ImageFile.py", line 180, in load
     d = Image._getdecoder(self.mode, d, a,
self.decoderconfig)
   File "PIL/Image.py", line 375, in _getdecoder
     raise IOError("decoder %s not available" %
decoder_name)
IOError: decoder jpeg not available
1 items had failures:
    1 of  57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.

Now, from that I can see that somehow the jpeg decoder is
not getting 
found despite the fact that build_ext says that jpeg support
is present.

I've been searching on this list over the last few hours,
and found some 
posts that suggested running python -vv -c
"_imaging" to verify that the 
imaging module was in the python being used, and doing so
showed that it 
was not.  However, this seems to be a chicken-or-egg thing. 
How can 
python have the imaging module available without me
installing it?  And 
how can I install it if it fails this test?  I tried anyway
to install, 
that worked fine, running `python -vv . . .` showed that it
was in fact 
being imported from the expected place, but selftest fails
in exactly the 
same way, every time.

Only one other thing I've noticed that might have some
bearing on the 
situation:

When I first run `python2.4 setup.py build_ext -i`, there is
a line at the 
very top of the output that says:

running build_ext
--- using frameworks at /System/Library/Frameworks

OS X has a standard, built-in python in the Frameworks that
is version 
2.3.5.  I can't use it for zope/plone since I need 2.4, but
I wonder if 
setup.py is somehow getting confused about which python to
use?? 
'python2.4' in the above command is a link to the executable
of my 
self-built python 2.4.4, and that's the one I want PIL to be
available to.

Any help would be greatly appreciated.  Sorry if there is a
solution out 
there that I've missed in my searching.  'My eyes are
growing weary . . .'

Thanks

Cris

********************************
Cris Ewing
CME and Telehealth Web Services
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: cewingu.washington.edu
*******************************

_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig

Re: problems with selftest on OS X intel XServe
country flaguser name
United States
2007-02-23 13:31:14
Is there a reason you can't use these?:

htt
p://pythonmac.org/packages/py24-fat/index.html

It would be a whole lot easier. I do see that there is not a
1.1.6 build 
of PIL there. If you need 1.1.6, I'd try to built it with
that Python, 
and if you have trouble, the folks on the pythonmac list
will be 
helpful. If you do get it built, it wold be great to submit
it to that 
archive, too.

If you really need to build your own Python, you may want to
do a 
framework build. It's a configure incantation that I don't'
know off the 
top of my head.

-Chris


cristopher pierson ewing wrote:
> Hi all,
> 
> I'm trying to build PIL to include it in python 

> Now I'm working on my 
> server, a new Intel XServe box running OS X 10.4.8.
> 
> I'm working with a compiled installation of Python
2.4.4, built earlier 
> today from source.


-- 
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.Barkernoaa.gov
_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig

Re: problems with selftest on OS X intel XServe
country flaguser name
United States
2007-02-23 17:21:11
cristopher pierson ewing wrote:
> The only reason I haven't done a framework build is to
avoid killing the 
> original python that comes on the box.  Just in case
there's anything 
> else that uses it that I'm forgetting.

You're right that you don't want to kill the one there, but
it's a 2.3 
version, and adding a 2.4 version will not kill it, they can
live quite 
happily together. I've got Apple's 2.3 build, and both 2.4
and 2.5 I 
installed myself-- all Framework builds.

> I wasn't aware of those packages.  I'll check it out.

And be sure to check out/join the pythonmac list. Very
helpful folks.

http://mail.python.org/mailman/listinfo/pythonmac-sig

-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.Barkernoaa.gov
_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig

Re: problems with selftest on OS X intel XServe
country flaguser name
United States
2007-02-23 17:13:49
The only reason I haven't done a framework build is to avoid
killing the 
original python that comes on the box.  Just in case there's
anything else 
that uses it that I'm forgetting.

I wasn't aware of those packages.  I'll check it out.  I
don't know that I 
need PIL1.1.6, so maybe an earlier build will work.  I just
like building 
every piece from source so I know what I've got running in
all cases.

C

********************************
Cris Ewing
CME and Telehealth Web Services
Department of Radiology Web Services
University of Washington
School of Medicine
Work Phone: (206) 685-9116
Home Phone: (206) 365-3413
E-mail: cewingu.washington.edu
*******************************


On Fri, 23 Feb 2007, Christopher Barker wrote:

> Is there a reason you can't use these?:
>
> htt
p://pythonmac.org/packages/py24-fat/index.html
>
> It would be a whole lot easier. I do see that there is
not a 1.1.6 build of 
> PIL there. If you need 1.1.6, I'd try to built it with
that Python, and if 
> you have trouble, the folks on the pythonmac list will
be helpful. If you do 
> get it built, it wold be great to submit it to that
archive, too.
>
> If you really need to build your own Python, you may
want to do a framework 
> build. It's a configure incantation that I don't' know
off the top of my 
> head.
>
> -Chris
>
>
> cristopher pierson ewing wrote:
>> Hi all,
>> 
>> I'm trying to build PIL to include it in python 
>
>> Now I'm working on my server, a new Intel XServe
box running OS X 10.4.8.
>> 
>> I'm working with a compiled installation of Python
2.4.4, built earlier 
>> today from source.
>
>
> -- 
> 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.Barkernoaa.gov
>
_______________________________________________
Image-SIG maillist  -  Image-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )