-
-
Notifications
You must be signed in to change notification settings - Fork 535
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' #366
Comments
That's removed in Django 3.0. django-cors-headers supports Django up until 2.1 right now. 2.2 is in alpha and will be supported by the time it is released. Presumably you're installing Django from its Basically, change to installing Django 2.1 from PyPI, and don't worry that issue will be fixed by the time Django 3.0 is released. |
Probably not +)) |
I have the same problem! How to fix this? |
Please upgrade to the latest version. It is fully tested with Django 3.0. If you’re still having errors there open a new issue with the exact trace back. Thanks. |
I am also getting same error today after udgrading version of django to 3.0.0. Any idea how to solve it ? I have checked in folder Lib\site-packages\django\utils and not found and six.py file but still from Lib\site-packages\jsonfield\encode.py containing line from django.utils import six, timezone which trying to import six but not able to find. |
What version of Django-cors-headers are you using? |
Having same issue, using django-cors-headers version 3.2.0 |
@ztolley with exactly the same trace back? 3.2.0 shouldn’t be importing six. |
Done more investigation, I think the problem actually comes from graphene-django. |
Any update on that ? Having the same error |
@IAmAMissingColon #366 (comment) |
Hello, have you been able to resolve the error? |
same issue |
There are several 3rd party packages, which use
Then identify the file, which uses
to:
|
@baermathias your suggestion is dangerous. Don't edit the files in your installed packages. Also please don't discuss packages other than django-cors-headers on this issue tracker. @wiwek13 upgrade django-cors-headers. If the problem is another package, check there. I'm locking this issue due to going off topic. |
django.utils.six has been removed from django development version:
django/django@4138481
The text was updated successfully, but these errors were encountered: