fedora-infra / fas

Fedora Account System
https://admin.fedoraproject.org/accounts
GNU General Public License v2.0
40 stars 50 forks source link

CAPTCHA not showing #244

Closed ryanlerch closed 7 years ago

ryanlerch commented 7 years ago

When running on the vagrant devel setup, i get the following error when trying to view the create account page, and the CAPTCHA shows on the page as a broken image.

2017-01-24 05:56:12,711 ERROR [waitress:15048][waitress:channel][service:341] Exception when serving /settings/captcha/Z0FBQUFBQllodXg1MlhrM1hmd1hGQmpGWk9UV2hQNHcwXzdabmtkSHRMeFdoeGI2Zjdtd3FORHRfejJHSWJWXzA5MmlQV2hkMUJYcWxfZk9BOUtLQ3lJbmg3Zk1BMy1vMFE9PQ==
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/waitress/channel.py", line 338, in service
    task.service()
  File "/usr/lib/python2.7/site-packages/waitress/task.py", line 169, in service
    self.execute()
  File "/usr/lib/python2.7/site-packages/waitress/task.py", line 399, in execute
    app_iter = self.channel.server.application(env, start_response)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 233, in __call__
    response = self.invoke_subrequest(request, use_tweens=True)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 208, in invoke_subrequest
    response = handle_request(request)
  File "/usr/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py", line 187, in toolbar_tween
    return handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 62, in excview_tween
    reraise(*attrs['exc_info'])
  File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 22, in excview_tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 119, in tm_tween
    reraise(*exc_info)
  File "/usr/lib/python2.7/site-packages/pyramid_tm/__init__.py", line 98, in tm_tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 155, in handle_request
    view_name
  File "/usr/lib/python2.7/site-packages/pyramid/view.py", line 612, in _call_view
    response = view_callable(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 438, in rendered_view
    result = view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/viewderivers.py", line 123, in _class_requestonly_view
    response = getattr(inst, attr)()
  File "/vagrant/fas/views/admin.py", line 145, in captcha_image
    return captcha.get_image(cipherkey)
  File "/vagrant/fas/lib/captcha.py", line 185, in get_image
    return self.__jpeg_generator__(self.__decrypt__(cipherkey))
  File "/vagrant/fas/lib/captcha.py", line 103, in __jpeg_generator__
    img.paste(self.bg_color)
  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1319, in paste
    "cannot determine region size; use 4-item box"
ValueError: cannot determine region size; use 4-item box