Hi there. For the last week or so I have been having real issues with getting Django / python and libjpeg to play nice. However successfully followed loads of threads and comments and got my own solution.
Secondly I have applied this solution so that it works successfully on my production server. Question I have though is why does it still not pick up the _imaging module. Here are the steps I took. I already had jpeg-7 and Imaging-1.1.7 on my server. I removed /opt/python2.6/lib/python2.6/site-packages/PIL and the PIL.pth file I deleted Imaging-1.1.7 and replaced it with 1.1.6 (as this is supposedly more stable) I then cd'd into my src directory where all my source files are. in jpeg-7 i ran the following statements. sudo make clean (this removed all previuses build and all references to *jpeg*) sudo ./configure --enable-shared --enable-static sudo make sudo make install then cd'd into my Imaging-1.1.6 directory and ran the following sudo rm -Rf build (to remove any previous builds) sudo python setup.py build sudo python setup.py install sudo python selftest.py (57 test passed) no errors. then i go into my directory where my django app lives and I execute the following python manage.py shell import Image (no errors) import PIL (no errors) import _imaging (no errors) i = Image.open("/path/to/my/image.jpeg") i.save("/path/to/my/new_image.jpeg") works without any errors. However... running the admin through django still causes me "c _imaging module not installed" Any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.