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:
tosolvethisproblem,trythis:
1.clearPILpackages
2.installrequiredpackages
3.downloadImageandinstall
4.checkifitworks
Iftheresultis:
---PILCOREsupportok ---TKINTERsupportok ---JPEGsupportok ---ZLIB(PNG/ZIP)supportok ---FREETYPE2supportok ***LITTLECMSsupportnotinstalled -------------------------------------------------------------------- Runningselftest: ---57testspassed.
相关文章推荐
- scrapy爬虫之错误 No module named PIL + IOError:decoder jpeg not available +PIL的安装
- IOError: decoder jpeg not available
- PIL不能正常使用exceptions.IOError: decoder jpeg not available
- PIL IOError: decoder jpeg not available
- python PIL IOError: decoder jpeg not available
- exceptions.IOError: decoder jpeg not available
- After Upgrade To Release 12.1.3 Users Receive "Function Not Available To This Responsibility" Error While Selecting Sub Menus Under Diagnostics (Doc ID 1200743.1)
- Wiki - 解决 IOError: decoder jpeg not available
- Python PIL : IOError: decoder jpeg not available
- 当我new class的时候,提示以下错误: Unable to parse template "Class" Error message: This template did not produce
- Unable to parse template "Annotation" Error message: This template did not produce a Java class or a
- freemarker.core.ParseException: Parsing error in template "site/product/solid/showSolid.html" in li
- FWK005 parse may not be called while parsing
- MOSS2007-404 error>"This webpage is not available"
- FWK005 parse may not be called while parsing
- Error parsing reference: "reg.docker.alibaba-inc.com/v2/swarmNew:new" is not a valid repository/tag
- new class的时候,提示以下错误: Unable to parse template "Class" Error message: This template did not produce
- [置顶] Android开发之解决Error:(16) Error: "ssdk_baidutieba_client_inavailable" is not translated in "en" (Englis
- python程序运行报错 IOError: decoder zip not available
- centos6 python decoder jpeg not available解决办法