cc-d / flask-simple-captcha

lightweight captcha. doesn't require server side sessions packages
MIT License
28 stars 12 forks source link

captcha is unreadable #29

Open studio4evr opened 1 month ago

studio4evr commented 1 month ago

no matter what my config is i'm getting this image

cc-d commented 1 month ago

Weird. I'll look into this tonight.

cc-d commented 1 month ago

Seems likely it has something to do with the included fonts? Perhaps the version is significant?

The last few commits have been exclusively related to github pages/dev work, so it seems unlikely this was a new problem introduced by myself recently.

(venv) mym2:flask-simple-captcha git diff HEAD~4 HEAD --stat
 .github/workflows/python-ci.yml | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 requirements_dev.txt            |  4 +++-
 2 files changed, 86 insertions(+), 1 deletion(-)
image

@studio4evr can you share with me the following:

  1. the output of python3 --version with the interpreter you're using to run flask-simple-captcha
  2. pip list to show all the dependencies/versions you have installed

You might be able to fix you're issue just by running pip install flask-simple-captcha --upgrade

Unrelated, I think i'm going to parallelize the debug server, I don't like the delay when loading 50+ captchas...

cc-d commented 1 month ago

There was a version at one point which did not have the fonts included, which would lead to this bug, that somebody else very nicely identified and fixed. If I had to guess, that's your problem, barring that, perhaps something related to pillow.