您的位置:首页 > 大数据 > 人工智能

Odoo ParseError:"decoder jpeg not available" while parsing....

2014-07-21 17:35 561 查看
ThereasoncausingthisproblemisthepluginPILinstallerror

tosolvethisproblem,trythis:

1.clearPILpackages

rm-rf/usr/lib/python2.7/site-packages/PIL rm-rf/usr/lib/python2.7/site-packages/PIL.pth

2.installrequiredpackages

ubuntu: apt-getinstalllibjpeg-dev apt-getinstalllibfreetype6-dev apt-getinstallzlib1g-dev apt-getinstalllibpng12-dev centos: yuminstallzlibzlib-devel yuminstalllibjpeglibjpeg-devel yuminstallfreetypefreetype-devel

3.downloadImageandinstall

wgethttp://effbot.org/downloads/Imaging-1.1.7.tar.gztarxzvfImaging-1.1.7.tar.gz cdImaging-1.1.7 #ifthesysisx64,youmustalsodothis:editthesetup.pyfileandset: #centOS: TCL_ROOT='/usr/lib64' JPEG_ROOT='/usr/lib64' ZLIB_ROOT='/usr/lib64' TIFF_ROOT='/usr/lib64' FREETYPE_ROOT='/usr/lib64' LCMS_ROOT='/usr/lib64' #Ubuntu: TCL_ROOT='/usr/lib/x86_64-linux-gnu' JPEG_ROOT='/usr/lib/x86_64-linux-gnu' ZLIB_ROOT='/usr/lib/x86_64-linux-gnu' TIFF_ROOT='/usr/lib/x86_64-linux-gnu' FREETYPE_ROOT='/usr/lib/x86_64-linux-gnu' LCMS_ROOT='/usr/lib/x86_64-linux-gnu' #theninstallituse: python2.7setup.pyinstall

4.checkifitworks

python2.7selftest.py

Iftheresultis:

---PILCOREsupportok
---TKINTERsupportok
---JPEGsupportok
---ZLIB(PNG/ZIP)supportok
---FREETYPE2supportok
***LITTLECMSsupportnotinstalled
--------------------------------------------------------------------
Runningselftest:
---57testspassed.


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐