I am running Debian Jessie on two hosts, both of which have privacyIDEA
installed; works perfectly on host A but I get this error on machine B when
I try to enroll a new token “IOError: encoder zip not available”
I have re-installed Pillow by forcibly removing it as such (dpkg -r
–force-depends “python-pil:amd64”); followed by a re-install (apt-get
install python-pil:amd64) but the results are the same; “encoder zip not
available”
Here is an excerpt from my privacyidea.log
File “/usr/lib/python2.7/dist-packages/privacyidea/api/token.py”, line
239, in init
init_details = tokenobject.get_init_detail(param, user)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/log.py”, line 125,
in log_wrapper
f_result = func(*args, **kwds)
File
"/usr/lib/python2.7/dist-packages/privacyidea/lib/tokens/hotptoken.py",
line 160, in get_init_detail
response_detail = TokenClass.get_init_detail(self, params, user)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/tokenclass.py”,
line 1078, in get_init_detail
"img": create_img(otpkey, width=200)}
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/utils.py”, line
56, in create_img
o_data = create_png(data, alt=alt)
File “/usr/lib/python2.7/dist-packages/privacyidea/lib/utils.py”, line
31, in create_png
img.save(output)
File “/usr/lib/python2.7/dist-packages/qrcode/image/pil.py”, line 32, in
save
self._img.save(stream, kind)
File “/usr/local/lib/python2.7/dist-packages/PIL/Image.py”, line 1439, in
save
save_handler(self, fp, filename)
File “/usr/local/lib/python2.7/dist-packages/PIL/PngImagePlugin.py”, line
572, in _save
ImageFile._save(im, _idat(fp, chunk), [(“zip”, (0,0)+im.size, 0,
rawmode)])
File “/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py”, line 481,
in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File “/usr/local/lib/python2.7/dist-packages/PIL/Image.py”, line 401, in
_getencoder
raise IOError(“encoder %s not available” % encoder_name)
IOError: encoder zip not available
Enter code here…