Note that there are some explanatory texts on larger screens.

plurals
  1. POPIL selftest.py fails for Centos 6 64-bit Error: Jpeg Decoder not Available
    primarykey
    data
    text
    <p>I am having difficulty on my server trying to get the selftest.py to run successfully.</p> <p>I am trying to get PIL 1.1.7 working with Python 2.4.4 (Are the versions compatible?)</p> <p>When the install is preformed like so:</p> <pre><code># python2.4 setup.py install running install running build running build_py running build_ext -------------------------------------------------------------------- PIL 1.1.7 SETUP SUMMARY -------------------------------------------------------------------- version 1.1.7 platform linux2 2.4.6 (#1, Dec 21 2012, 14:54:30) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] -------------------------------------------------------------------- *** 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 running install_lib running install_scripts changing mode of /usr/local/bin/pilconvert.py to 755 changing mode of /usr/local/bin/pilprint.py to 755 changing mode of /usr/local/bin/pilfile.py to 755 changing mode of /usr/local/bin/pilfont.py to 755 changing mode of /usr/local/bin/pildriver.py to 755 creating /usr/local/lib/python2.4/site-packages/PIL.pth </code></pre> <p>Everything seems handy dandy. Jpeg support is available and all is happy. But the selftest.py however is a different story:</p> <pre><code> # python2.4 /usr/local/src/Imaging-1.1.7/selftest.py -------------------------------------------------------------------- PIL 1.1.7 TEST SUMMARY rc/Imaging-1.1.7]# yum install libjpeg62-devel zlib1g-devel libfreetype6-devel liblcms1-develp -------------------------------------------------------------------- Python modules loaded from ./PIL Binary modules loaded from ./PIL -------------------------------------------------------------------- --- PIL CORE support ok *** TKINTER support not installed *** JPEG support not installed *** ZLIB (PNG/ZIP) support not installed --- FREETYPE2 support ok *** LITTLECMS support not installed -------------------------------------------------------------------- Running selftest: ***************************************************************** Failure in example: try: _info(Image.open(os.path.join(ROOT, "Images/lena.jpg"))) except IOError, v: print v from line #24 of selftest.testimage Expected: ('JPEG', 'RGB', (128, 128)) Got: decoder jpeg not available 1 items had failures: 1 of 57 in selftest.testimage ***Test Failed*** 1 failures. *** 1 tests of 57 failed. </code></pre> <p>I get the dreaded Jpeg decoder not available. </p> <p>I've tried a variety of things. I changed the setup to point to usr/lib64 that didn't work. I made some symbolic links in the usr/lib to point to the libjpeg.so file, that also didn't work. I went back and forth with the tech guys at our server hosting place and they aren't understanding the issue and it's like talking to a wall. I am really stuck. The only thing I haven't tried is the PiP but I didn't try that because I don't know how that works exactly. So I want to avoid that.</p> <p>Is there a compatibility issue or a setting I just don't have quite right?</p> <p>Thank you for the assistance.</p> <p>--UPDATE--</p> <p>Working on this problem again these days I've tested Centos 5 &amp; 6 32-bit And everything installs like a charm, but 64-bit I'm still having issues.</p> <p>It seems like the selftest works with the stock python2.6 but not with python2.4. Pil 1.1.7 is compatable with 2.4.4 but I think there is a problem with the libraries in 64-bit. Still searching for a solution.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload