【已解决】Ubuntu12.10x64安装OpenERP时PIL问题
-
预览带图片的PDF文件时出错(纯文本没有问题):
decoder zip not available
identity=[ImageReader@0x7f37802e0550]
handle_pageBegin args=()
(<type 'exceptions.IOError'>, IOError('decoder zip not available\nidentity=[ImageReader@0x7f37802e0550]\n handle_pageBegin args=()',), <traceback object at 0x7f378cecfb90>)
重新安装PIL还是出错,
也做了软链接:
------------------------------------------------------------------------------------------------------------------------------------
# ln -sf /lib/x86_64-linux-gnu/libz.so.1.2.7 /usr/lib/libz.so
# ln -sf /lib/x86_64-linux-gnu/libfreetype.so.6.9.0 /usr/lib/libfreetype.so
# ln -sf /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 /usr/lib/libjpeg.so
------------------------------------------------------------------------------------------------------------------------------------
依然报错:
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
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 ok
--------------------------------------------------------------------
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.
先记录一下,等解决了再贴出方法~~ -