TypeError at /captcha/image/8c4ce0976a3895b3170bb0877f6d9447307e9714/
an integer is required
Request Method: GET
Request URL:
http://10.10.10.42:8000/captcha/image/8c4ce0976a3895b3170bb0877f6d9447307e9714/ Django Version: 1.3.1
Exception Type: TypeError
Exception Value: an integer is required
Exception Location: C:\Python27\lib\site-packages\PIL\Image.py in _getencoder, line 399
Python Executable: C:\Python27\python.exe
Python Version: 2.7.3
Traceback:
File “C:\Python27\lib\site-packages\django\core\handlers\base.py” in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File “C:\Python27\lib\site-packages\django_simple_captcha-0.3.0-py2.7.egg\captcha\views.py” in captcha_image
71. image.save(out,“PNG”)
File “C:\Python27\lib\site-packages\PIL\Image.py” in save
1439. save_handler(self, fp, filename)
File “C:\Python27\lib\site-packages\PIL\PngImagePlugin.py” in _save
572. ImageFile._save(im, _idat(fp, chunk), )
File “C:\Python27\lib\site-packages\PIL\ImageFile.py” in _save
481. e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File “C:\Python27\lib\site-packages\PIL\Image.py” in _getencoder
399. return apply(encoder, (mode,) + args + extra)
Exception Type: TypeError at /captcha/image/8c4ce0976a3895b3170bb0877f6d9447307e9714/
Exception Value: an integer is required