-
Notifications
You must be signed in to change notification settings - Fork 130
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
ImportError: cannot import name 'six' #326
Comments
"pip install --upgrade djangorestframework" |
Same happening here, upgrading djangorestframework didn't help |
Which Django version you are using currently? |
Updating to |
Having the same import problem. I tried your solution and it worked but do u know how stable it is for production? |
Unfortunately, I have no clear idea about that. I'm writing for tools for my personal use only. However, I'd suppose that a production-ready version won't be released with a dev label on it :) |
getting this error after placing configuration dict. 'DEFAULT_FILTER_BACKENDS': ( Django version: 3.0.7 |
I solved this by installing latest https://github.com/carltongibson/django-filter Note that you need to uninstall this package before as it relies on an older version and you get this error |
Hey @poojansmobio do you have any updates on this? I'm happy to collaborate with you to solve this issue! |
Hey, @petrosschilling updating the |
I did it but I get a dependency issue:
So basically I need to wait for a new version of djangorestframework-jsonapi before I can do this update. |
In your case try downgrading it to |
I'm using JRF 3.11.1. Which save me from the conflicts. The problem lies in the filterset.py file. I checked the tag of version filterset.py
|
Replace |
Well that is not feasible, because in case i need to re-create my environment I will have to remember to change that import. Not only me but all other devs as well. What I've done (for now) is to use the latest dev version (djangorestframework-filters==1.0.0.dev2) which will do for the time being. The RelatedFilter is pretty good by the way. It is exactly what I was looking for. It doesn't pick up the override of the
It still filter with But that is another issue. Thanks for your time and help! |
After trying
|
You might have missed a comma (,) after 'rest_framework_filter' |
@ashish141199 The latest pre-release is 1.0.0.dev2 |
A specified in Django 3.0 release note, django.utils.six is removed. In case you need it, it is advised to use pypi packages instead.
can you update?
The text was updated successfully, but these errors were encountered: