Re: PIL: The _imaging C module is not installed
On 9-5-2011 8:22, Nico Grubert wrote: >> I had this happening to me as well someday. >> I recall that first installing it (python setup.py install), and then >> rerunning selftest, solved that error. > > I tried that as well. > Here is the summary of the install process: > > build/temp.linux-x86_64-2.4/libImaging/ZipEncode.o -L/usr/local/lib > -L/usr/lib -ljpeg > -lz -o build/lib.linux-x86_64-2.4/_imaging.so [...] > > $ python selftest.py > *** The _imaging C module is not installed > Don't know why the build seems to fail. PIL installs and works fine on all computers I've installed it on recently... What happens when you just forget about selftest and run python and type import Image? Doesn't the package manager on CentOS offer a python-imaging, python-pil or whatever precompiled and configured package? If not (why not!?) try pip install PIL. Irmen -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
Am 09.05.2011 08:22, schrieb Nico Grubert: > $ python selftest.py > *** The _imaging C module is not installed It works for me after an inplace installation of the C extensions with "python setup.py build_ext -i". With build_ext -i the C extension is installed inside the source tree so selftest can find it. Christian -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
I had this happening to me as well someday. I recall that first installing it (python setup.py install), and then rerunning selftest, solved that error. I tried that as well. Here is the summary of the install process: build/temp.linux-x86_64-2.4/libImaging/ZipEncode.o -L/usr/local/lib -L/usr/lib -ljpeg -lz -o build/lib.linux-x86_64-2.4/_imaging.so /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc building '_imagingft' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c _imagingft.c -o build/temp.linux-x86_64-2.4/_imagingft.o gcc -pthread -shared build/temp.linux-x86_64-2.4/_imagingft.o -L/usr/local/lib -L/usr/lib -lfreetype -o build/lib.linux-x86_64-2.4/_imagingft.so /usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc building '_imagingmath' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/local/include -I/usr/include -I/usr/local/include/python2.4 -c _imagingmath.c -o build/temp.linux-x86_64-2.4/_imagingmath.o gcc -pthread -shared build/temp.linux-x86_64-2.4/_imagingmath.o -L/usr/local/lib -L/usr/lib -o build/lib.linux-x86_64-2.4/_imagingmath.so /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc PIL 1.1.7 SETUP SUMMARY version 1.1.7 platform linux2 2.4.6 (#1, Mar 16 2011, 11:33:33) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] *** TKINTER support not available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- FREETYPE2 support available *** LITTLECMS support not available To add a missing option, make sure you have the required library, and set the corresponding ROOT variable in the setup.py script. To check the build, run the selftest.py script. running build_scripts creating build/scripts-2.4 copying Scripts/pilfont.py -> build/scripts-2.4 copying and adjusting Scripts/pilconvert.py -> build/scripts-2.4 copying and adjusting Scripts/pilfile.py -> build/scripts-2.4 copying and adjusting Scripts/pilprint.py -> build/scripts-2.4 copying and adjusting Scripts/pildriver.py -> build/scripts-2.4 changing mode of build/scripts-2.4/pilfont.py from 644 to 755 changing mode of build/scripts-2.4/pilconvert.py from 644 to 755 changing mode of build/scripts-2.4/pilfile.py from 644 to 755 changing mode of build/scripts-2.4/pilprint.py from 644 to 755 changing mode of build/scripts-2.4/pildriver.py from 644 to 755 running install_lib copying build/lib.linux-x86_64-2.4/_imagingft.so -> /usr/local/lib/python2.4/site-packages/PIL copying build/lib.linux-x86_64-2.4/_imagingmath.so -> /usr/local/lib/python2.4/site-packages/PIL copying build/lib.linux-x86_64-2.4/_imaging.so -> /usr/local/lib/python2.4/site-packages/PIL running install_scripts copying build/scripts-2.4/pilconvert.py -> /usr/local/bin copying build/scripts-2.4/pilfile.py -> /usr/local/bin copying build/scripts-2.4/pilprint.py -> /usr/local/bin copying build/scripts-2.4/pildriver.py -> /usr/local/bin changing mode of /usr/local/bin/pilfont.py to 755 changing mode of /usr/local/bin/pilconvert.py to 755 changing mode of /usr/local/bin/pilfile.py to 755 changing mode of /usr/local/bin/pilprint.py to 755 changing mode of /usr/local/bin/pildriver.py to 755 creating /usr/local/lib/python2.4/site-packages/PIL.pth $ python selftest.py *** The _imaging C module is not installed Regards Nico -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
On 06-05-11 15:56, Nico Grubert wrote: However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed I had this happening to me as well someday. I recall that first installing it (python setup.py install), and then rerunning selftest, solved that error. Irmen -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
> PIL will compile and install if you don't have some development > libraries and then simply not work or not work up to full steam when > used. > > To avoid this, you need to install the appropriate libraries, among > which are: > > libjpeg-devel > freetype-devel > libpng-devel Dear Albert Thank you for your reply. I did install all these libraries. Testing it with yum shows: $ yum install libpng-devel Package 2:libpng-devel-1.2.10-7.1.el5_5.3.x86_64 already installed and latest version Package 2:libpng-devel-1.2.10-7.1.el5_5.3.i386 already installed and latest version $ yum install libjpeg-devel Package libjpeg-devel-6b-37.x86_64 already installed and latest version Package libjpeg-devel-6b-37.i386 already installed and latest version $ yum install libpng-devel Package 2:libpng-devel-1.2.10-7.1.el5_5.3.x86_64 already installed and latest version Package 2:libpng-devel-1.2.10-7.1.el5_5.3.i386 already installed and latest version Re-Compiling PIL shows: $ python setup.py build_ext -i *** TKINTER support not available --- JPEG support available --- ZLIB (PNG/ZIP) support available --- FREETYPE2 support available *** LITTLECMS support not available However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed Regards Nico -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
@Michel use PIL downloaded from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ regards 2011/5/6 Christian Heimes : > Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: >> Re! >> >> And why the problem no exist with PIL 1.1.6? (only 1.1.7) >> Is that the version 1.1.6 does not use these libraries? > > PIL 1.1.6 also uses its internal C library to speed things up. > > For Windows you should use the precompiled packages. > http://www.pythonware.com/products/pil/ offers X86 Windows binaries for > 1.1.7. You might run into a problem with 1.1.7 Windows binaries. The > freetype C library references a debug CRT that is not available on all > machines. You can easily patch the _imagingft.pyd file with a hex editor. > > Christian > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: > Re! > > And why the problem no exist with PIL 1.1.6? (only 1.1.7) > Is that the version 1.1.6 does not use these libraries? PIL 1.1.6 also uses its internal C library to speed things up. For Windows you should use the precompiled packages. http://www.pythonware.com/products/pil/ offers X86 Windows binaries for 1.1.7. You might run into a problem with 1.1.7 Windows binaries. The freetype C library references a debug CRT that is not available on all machines. You can easily patch the _imagingft.pyd file with a hex editor. Christian -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
On Fri, 2011-05-06 at 01:45 +0200, Michel Claveau - MVP wrote: > Hi! > > > you need to install the appropriate libraries, among which are: > > libjpeg-devel > > freetype-devel > > libpng-devel > > OK, but where can I find it? I want use PIL with Python under Windows, > and I can't compile C's sources. > Should I replace PIL by ImageMagick? The OP was about CentOS. I have no idea about Windows. -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
Re! And why the problem no exist with PIL 1.1.6? (only 1.1.7) Is that the version 1.1.6 does not use these libraries? @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
Hi! > you need to install the appropriate libraries, among which are: > libjpeg-devel > freetype-devel > libpng-devel OK, but where can I find it? I want use PIL with Python under Windows, and I can't compile C's sources. Should I replace PIL by ImageMagick? @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
Oh I forgot to say, after installing these libraries, you will need to re-compile (install) PIL. -a -- http://mail.python.org/mailman/listinfo/python-list
Re: PIL: The _imaging C module is not installed
On Thu, 2011-05-05 at 15:35 +0200, Nico Grubert wrote: > Hi there > > I am having trouble to install PIL 1.1.7 on CentOS. > > I read and followed the instructions from > http://effbot.org/zone/pil-imaging-not-installed.htm > > However, I still get the "The _imaging C module is not installed" error > if I run the selftest: > > $ python selftest.py > *** The _imaging C module is not installed > > > Here is what I have tested so far: > > 1.) > > $ python -v > ... > >>> import Image > ... > dlopen("/usr/local/lib/python2.4/site-packages/PIL/_imaging.so", 2); > import _imaging # dynamically loaded from > /usr/local/lib/python2.4/site-packages/PIL/_imaging.so > ... I had this problem earlier this week. Assuming that you pip-installed or similar. PIL will compile and install if you don't have some development libraries and then simply not work or not work up to full steam when used. To avoid this, you need to install the appropriate libraries, among which are: libjpeg-devel freetype-devel libpng-devel Probably others as well. HTH, -a -- http://mail.python.org/mailman/listinfo/python-list
PIL: The _imaging C module is not installed
Hi there I am having trouble to install PIL 1.1.7 on CentOS. I read and followed the instructions from http://effbot.org/zone/pil-imaging-not-installed.htm However, I still get the "The _imaging C module is not installed" error if I run the selftest: $ python selftest.py *** The _imaging C module is not installed Here is what I have tested so far: 1.) $ python -v ... >>> import Image ... dlopen("/usr/local/lib/python2.4/site-packages/PIL/_imaging.so", 2); import _imaging # dynamically loaded from /usr/local/lib/python2.4/site-packages/PIL/_imaging.so ... 2.) $ python ... >>> import _imaging ...success imported! Any idea what might be wrong? Regards Nico -- http://mail.python.org/mailman/listinfo/python-list
PIL : "The _imaging C module is not installed"
Hello! (*** sorry for my bad english***) I have the message (title), but only with PIL 1.1.7 (Windows XP, Vista or 7 (32 bits or 64 bits)). I tried: _imaging.pyd exist in C:\Python26\Lib\site-packages\PIL OK python -v >>> import Image OK sys.path contain C:\Python26\Lib\site-packages\PIL OK python >>> import _imaging OK I tested on more than 6 computers, with new installations, or update installations. Same problem. Same problem, also, with Python 2.6 or Python 2.7 If I install again PIL 1.1.6, all scripts run OK. Then, I install again PIL 1.1.7, the problem returns. It is the only thing than I wait before update to Python 2.7 One idea? Thanks in advance. -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list