Re: Can't install PIL on MacOS X Leopard

2010-03-10 Thread phantasm
Thank you for your reply, Ned, but I just tried to install it again
and found out that I didn't finally run "python setup.py install"
after building PIL manually. It solved the problem.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can't install PIL on MacOS X Leopard

2010-03-10 Thread Ned Deily
In article 
<94070db2-91f0-47a8-a259-36378aab9...@o3g2000yqb.googlegroups.com>,
 phantasm  wrote:
> I'm trying to install PIL module on MacOS X Leopard with python 2.6.
> Everything seemed to be fine - now I have PIL egg package in "site-
> packages" directory, but when I'm trying "import PIL", I get an error
> "ImportError: No module named PIL".
> 
> All other modules such as SQL Alchemy work fine. Their EGGs reside in
> a same directory as a resulting PIL package.
> 
> I've tried to install either via easy_install and manually, results
> are the same. PYTHONPATH environment variable is set to a correct
> directory. python command "import _imaging" returns no error.
> 
> What I'm doing wrong?

Hard to say without more information but it does seem odd that _imaging 
can be imported.  One thing to try:

$ python2.6
Python 2.6.4 (r264:75706, Oct 28 2009, 20:34:51) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _imaging
>>> _imaging.__file__
'/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-pac
kages/PIL/_imaging.so'
# or something like that

Make sure the file is located within the expected PIL directory.  Also 
make sure there aren't any file permission problems on any of the PIL 
directories and files.  I'm assuming PIL was installed as an unzipped 
egg.  And double-check the contents of any .pth files.

-- 
 Ned Deily,
 n...@acm.org

-- 
http://mail.python.org/mailman/listinfo/python-list


Can't install PIL on MacOS X Leopard

2010-03-10 Thread phantasm
Hello!

I'm trying to install PIL module on MacOS X Leopard with python 2.6.
Everything seemed to be fine - now I have PIL egg package in "site-
packages" directory, but when I'm trying "import PIL", I get an error
"ImportError: No module named PIL".

All other modules such as SQL Alchemy work fine. Their EGGs reside in
a same directory as a resulting PIL package.

I've tried to install either via easy_install and manually, results
are the same. PYTHONPATH environment variable is set to a correct
directory. python command "import _imaging" returns no error.

What I'm doing wrong?
-- 
http://mail.python.org/mailman/listinfo/python-list


PIL on MacOS

2006-07-29 Thread kernel1983
I was trying to build PIL and pygame from the source on the MacOS.

But when I typed 'sudo python setup.py install',
it gives error msg :

gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd
-fno-common -dynamic -DNDEBUG -g -DHAVE_LIBZ -DWORDS_BIGENDIAN
-I/System/Library/Frameworks/Tcl.framework/Headers
-I/System/Library/Frameworks/Tk.framework/Headers
-I/usr/local/include/freetype2 -IlibImaging
-I/Library/Frameworks/Python.framework/Versions/2.4/include
-I/usr/local/include -I/usr/include
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-c _imaging.c -o build/temp.macosx-10.4-fat-2.4/_imaging.o
gcc: cannot specify -o with -c or -S and multiple compilations
error: command 'gcc' failed with exit status 1

Is there any one who did this before?how can i solve it?
Thanks

-- 
http://mail.python.org/mailman/listinfo/python-list