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

Invalid syntax error when importing Filterset #942

Closed
lalatgithub opened this issue Jul 6, 2018 · 3 comments
Closed

Invalid syntax error when importing Filterset #942

lalatgithub opened this issue Jul 6, 2018 · 3 comments

Comments

@lalatgithub
Copy link

lalatgithub commented Jul 6, 2018

from .filterset import FilterSet
File "/python2.7/site-packages/django_filters/filterset.py", line 141
    def __init__(self, data=None, queryset=None, *, request=None, prefix=None):
                                                  ^
SyntaxError: invalid syntax

Python 2.7
Django 1.11
django-filter (latest master)

@lalatgithub
Copy link
Author

lalatgithub commented Jul 6, 2018

If you need to support Python 2.7 or Django <1.11 use the version 1.1 release. i was using 2.0 dev

mrnerdhair added a commit to mrnerdhair/scirius that referenced this issue Jul 26, 2018
Per carltongibson/django-filter#942, django-filter 2.0 and up are incompatible with Python 2.7. Fixes StamusNetworks#141.
regit pushed a commit to StamusNetworks/scirius that referenced this issue Aug 2, 2018
Per carltongibson/django-filter#942, django-filter 2.0 and up are incompatible with Python 2.7. Fixes #141.
@rvernica
Copy link

rvernica commented Aug 3, 2018

The metadata for the 2.* packages should enforce Python >= 3. I think this issue should be reopened.

@rpkilby
Copy link
Collaborator

rpkilby commented Aug 3, 2018

Hi @rvernica. This has been fixed, just not released. See #953.

elpaso added a commit to elpaso/g3w-admin that referenced this issue Oct 2, 2018
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

3 participants