I tried server on hashbang and raised error when I try to login:
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
self._do_respond(path_info)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
response.body = self.handler()
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "server.py", line 173, in login
captcha_image = self.captchagen.generate(random_str)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 45, in generate
im = self.generate_image(chars)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 228, in generate_image
im = self.create_captcha_image(chars, color, background)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 199, in create_captcha_image
images.append(_draw_character(c))
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 164, in _draw_character
font = random.choice(self.truefonts)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 122, in truefonts
for n in self._fonts
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 123, in <listcomp>
for s in self._font_sizes
File "/usr/lib/python3/dist-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/lib/python3/dist-packages/PIL/ImageFont.py", line 145, in __init__
layout_engine=layout_engine)
OSError: cannot open resource
I tried server on [hashbang](de1.hashbang.sh:8667) and raised error when I try to login:
```
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
self._do_respond(path_info)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
response.body = self.handler()
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "server.py", line 173, in login
captcha_image = self.captchagen.generate(random_str)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 45, in generate
im = self.generate_image(chars)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 228, in generate_image
im = self.create_captcha_image(chars, color, background)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 199, in create_captcha_image
images.append(_draw_character(c))
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 164, in _draw_character
font = random.choice(self.truefonts)
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 122, in truefonts
for n in self._fonts
File "/home/bsimjoo/.local/lib/python3.7/site-packages/captcha/image.py", line 123, in <listcomp>
for s in self._font_sizes
File "/usr/lib/python3/dist-packages/PIL/ImageFont.py", line 280, in truetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/usr/lib/python3/dist-packages/PIL/ImageFont.py", line 145, in __init__
layout_engine=layout_engine)
OSError: cannot open resource
```
Related: #25
I tried server on hashbang and raised error when I try to login:
Related: #25
Does the Ubuntu mono font exist on the working directory and is it readable for our server app(permissions)?
oh late reply!
How about disabling captcha until we create our captcha server related to issue 2?
Did you check what I said?
Ok I confirm that this bug exists.