Jithin Pavithran Jithin Pavithran - 6 months ago 62
Python Question

" ImportError: cannot import name CaptchaFields " - Django

I cloned a working project from BitBucket and tried:

python manage.py runserver


I'm getting the following error:


from captcha.fields import CaptchaField

ImportError: cannot import name CaptchaField


I did install captcha using
pip install captcha
and it installed without any error.

Following is my captcha folder ( installation directory ) contents

enter image description here

I tried installing
simple-cpatcha
,
recaptcha
manually but didn't help.

I couldn't find
captcha
zip file to install it manually.

Answer

I had similar problem.
Using Django 1.8.2, Python 2.7 and pip 7.0.1
and command pip install captcha solved it.