shaoyh / django-simple-captcha

Automatically exported from code.google.com/p/django-simple-captcha
MIT License
0 stars 0 forks source link

TypeError at /captcha/image #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to display the captcha image, I receive this error
TypeError at /captcha/image/4108fce42aa1fecad97bebe320f712ad8dfcc01f/

expected string

Request Method:     GET
Request URL: 
    http://preprod.fixy.co/captcha/image/4108fce42aa1fecad97bebe320f712ad8dfcc01f/
Django Version:     1.3.1
Exception Type:     TypeError
Exception Value:    

expected string

Exception Location: 
    /home/fixyco/.virtualenvs/fixy/lib/python2.7/site-packages/PIL/ImageFont.py in 
getsize, line 144
Python Executable:  /usr/bin/python
Python Version:     2.4.3

I use apache with mod_wsgi on linux centos. Pil is installed with jpg and 
freetype support.

Any help will really be apreciated.
Thanks

Original issue reported on code.google.com by p.azo...@ringo-group.com on 10 Jan 2012 at 10:44

GoogleCodeExporter commented 8 years ago
Are you using a custom generator? 
Also, do you get the same result on all your environments (i.e. development) or 
only pre-prod?
And, could you ssh onto the server and run ./manage.py test captcha, report 
back any errors?

Original comment by mbonetti on 10 Jan 2012 at 11:12

GoogleCodeExporter commented 8 years ago
Hi, Thanks for your quick response :
1- I am not using a custom generator
2- In dev it is ok (osx snow leopard, but not running under apache mod wsgi) 
3- manage.py test captcha does not report any error

Thanks

Original comment by p.azo...@ringo-group.com on 10 Jan 2012 at 11:21