Thumbor:IOError:解码器jpeg不可用

2024-05-13 01:47:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我在为VTNC工作,试图运行Thumbor的入门第一个示例,但它返回给我以下错误:

(thumbor)mac:thumbor pzanetti631$ thumbor
2014-01-29 13:49:32 thumbor:ERROR Could not save as improved image, consider to increase       ImageFile.MAXBLOCK
Traceback (most recent call last):
File ".../sandbox/thumbor/lib/python2.7/site-packages/thumbor/engines/pil.py", line 137, in read
self.image.save(img_buffer, FORMATS[ext], **options)
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/Image.py", line 1420, in save
self.load()
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/ImageFile.py", line 193, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/Image.py", line 356, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
2014-01-29 13:49:32 thumbor:ERROR ERROR: Traceback (most recent call last):
File ".../sandbox/thumbor/lib/python2.7/site-packages/tornado/web.py", line 1115, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File ".../sandbox/thumbor/lib/python2.7/site-packages/tornado/stack_context.py", line 302, in wrapped
ret = fn(*args, **kwargs)
File ".../sandbox/thumbor/lib/python2.7/site-packages/thumbor/loaders/http_loader.py", line 49, in return_contents
callback(response.body)
File ".../sandbox/thumbor/lib/python2.7/site-packages/thumbor/handlers/__init__.py", line 298, in handle_loader_loaded
buffer = engine.read()
File ".../sandbox/thumbor/lib/python2.7/site-packages/thumbor/engines/pil.py", line 140, in read
self.image.save(img_buffer, FORMATS[ext])
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/Image.py", line 1420, in save
self.load()
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/ImageFile.py", line 193, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File ".../sandbox/thumbor/lib/python2.7/site-packages/PIL/Image.py", line 356, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available

2014-01-29 13:49:32 tornado.access:ERROR 500 GET /unsafe/300x0/http://www.waterfalls.hamilton.ca/images/Waterfall_Collage_home_sm1.jpg (127.0.0.1) 2077.94ms

ds公司

我在Mac上,我通过pip安装了它,遵循Documentation。它说PIL是默认安装的。。。在

我该怎么解决这个问题?在

以下是我的pip freeze输出:

^{pr2}$

干杯

——保罗·萨内蒂


Tags: inpyimageselfpilsavelibpackages
2条回答

真奇怪。我是thumbor的提交者之一。它应该与枕头2.1.0一起工作。你有安装PIL吗?枕头不工作与皮尔安装。在

很抱歉你有任何问题。请务必在项目中创建一个问题,下次你陷入困境!在

干杯, 伯纳多·海尼曼

以下是我(奇怪地)解决问题的方法:

1)安装拇指夹后,取下枕头(截至今日,安装版本2.1.0

2)(重新)安装枕头(从今天起,它将安装版本2.3.0);以及

3)之后,(重新)安装拇指夹。在

相关问题 更多 >