Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 2.7 compatibility #129

Open
AymRod opened this issue Dec 20, 2017 · 3 comments
Open

python 2.7 compatibility #129

AymRod opened this issue Dec 20, 2017 · 3 comments

Comments

@AymRod
Copy link

AymRod commented Dec 20, 2017

With python 2.7, when installing django-simple-captcha with pip 9.0, pip downloads django 2.0 (released 2017/12/02), and executes the command python setup.py egg_info, which results in an error: AttributeError: 'module' object has no attribute 'lru_cache'. Before django 2.0 was released, it installed django 1.11, and there was no problem. django <2.0 did support python 2.7, but django >=2.0 does not, which is I think the cause of the bug.
To sum up, "pip install django-simple-captcha" downloads django 2.0 which is not compatible with python 2.7.

dsc_error

@mbi
Copy link
Owner

mbi commented Dec 20, 2017

Hmm yes, I see the problem, but I'm note quite sure how to express a dynamic dependency in setup.py based on whether we're installing with Py2 or Py3.

Any ideas?

EDIT: here is the answer!

@prokaktus
Copy link

As a workaround, you could install Django first and then install django-simple-captcha.

@jannh
Copy link

jannh commented May 24, 2020

Well... since python2 and Django 1.11 are both EOL by now, would it make sense to drop support for python2 and require Django 2.2+ (which is the oldest version of Django currently supported)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants