2014年2月10日星期一

python 之图片无法显示 IOError: decoder zip not available

最近用 mezzanine 搭建了一个 blog, 后台管理 media-library 部分总是报错:

About the PIL Error — IOError: decoder zip not available

重新安装,看到安装后的结果是支持的:
*** ZLIB (PNG/ZIP) support available
重装了好几遍,还是没有用,使用模块 Pillow 的 2.3.0 版本安装后,页面可以成功打开了。

处理完那个问题,又有个新问题,就是中文的地址无法解析:
http://ip/%E4%BA%B2%E6%83%85/
'ascii' codec can't encode characters in position 35-36: ordinal not in range(128)
export LC_ALL='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'


mezzanine 的备份和迁移还需要关注一下。 这个虚拟主机还有半年左右就到期了。
About the PIL Error — IOError: decoder zip not available
*** ZLIB (PNG/ZIP) support available


'ascii' codec can't encode characters in position 35-36: ordinal not in range(128)
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'

没有评论:

发表评论