[Image-SIG] a bug in PIL?
Olli Rajala
olli.s.rajala at tut.fi
Thu Oct 28 16:52:44 CEST 2004
Hi! I tried to install PIL, but it gave some errors. I asked about
these errors in Python tutor-mailing list and they said to ask
here. So, here I am now. :) If you need some additional info, just
ask. Some guy said "After a quick look at setup.py I think this is a
bug. EXTRA_COMPILE_ARGS is only defined if Tkinter is present but it
is used outside the test for Tkinter." So, is this a bug or only an
(un)documented feature? ;)
Oh, I don't have root-account in that machine (it's in my school) so
is it possible to install/use PIL there?
**************************************************
[mozart 2] ~/python > tar zcvf Imaging-1.1.4.tar.gz
<clip>
[mozart 3] ~/python > cd Imaging-1.1.4/libImaging/
[mozart 4] ~/python/Imaging-1.1.4/libImaging >
[mozart 5] ~/python/Imaging-1.1.4/libImaging > ./configure
creating cache ./config.cache
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for ar... ar
checking MACHDEP... linux2
checking for jpeg_destroy_compress in -ljpeg... yes
checking for deflate in -lz... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking size of char... 1
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of float... 4
checking size of double... 8
checking for working const... yes
checking for prototypes... yes
checking for unistd.h... yes
checking for getpagesize... yes
checking for working mmap... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating ImConfig.h
[mozart 6] ~/python/Imaging-1.1.4/libImaging > make
<compiling withouth errors>
[mozart 7] ~/python/Imaging-1.1.4/libImaging > cd ..
[mozart 8] ~/python/Imaging-1.1.4 > python setup.py build
Traceback (most recent call last):
File "setup.py", line 287, in ?
extra_compile_args=EXTRA_COMPILE_ARGS,
NameError: name 'EXTRA_COMPILE_ARGS' is not defined
[mozart 9] ~/python/Imaging-1.1.4 > python setup.py install
Traceback (most recent call last):
File "setup.py", line 287, in ?
extra_compile_args=EXTRA_COMPILE_ARGS,
NameError: name 'EXTRA_COMPILE_ARGS' is not defined
[mozart 9] ~/python/Imaging-1.1.4 > python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
>>>
**************************************************
Sincerely,
--
<><
"Quite normal guy"
Olli Rajala
More information about the Image-SIG
mailing list