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

Python2 compatible #18

Closed
arvindkhadri opened this issue Mar 7, 2018 · 2 comments
Closed

Python2 compatible #18

arvindkhadri opened this issue Mar 7, 2018 · 2 comments

Comments

@arvindkhadri
Copy link

Hi,
I am trying to use this project on python2 and I get the following error,

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/sqlalchemy_filters/__init__.py", line 3, in <module>
    from .filters import apply_filters  # noqa: F401
  File "/usr/lib/python2.7/site-packages/sqlalchemy_filters/filters.py", line 3, in <module>
    from inspect import signature
ImportError: cannot import name signature
@mattbennett
Copy link
Collaborator

We chose not to support Python 2 for this library, sorry.

inspect.signature is not available before Python 3.3. You may be able to work around it in a fork if you can't upgrade to Python 3.

@arvindkhadri
Copy link
Author

I have a work around, I was wondering if I should send a pull request.

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

2 participants