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

Django 4 compatibility #24

Open
kurte32 opened this issue Jun 18, 2022 · 1 comment
Open

Django 4 compatibility #24

kurte32 opened this issue Jun 18, 2022 · 1 comment

Comments

@kurte32
Copy link

kurte32 commented Jun 18, 2022

Hi
im trying to implement graph_wrap into an existing project that runs with Django 4.0.1
keep getting the following error
ImportError: cannot import name 'force_text' from 'django.utils.encoding

@PaulGilmartin
Copy link
Owner

Hi @kurte32 !
Thanks for raising this. I was not aware of this, but it looks like this is due to the fact that one of graph-wrap's dependencies, graphene-django, does not yet correctly support Django 4. See graphql-python/graphene-django#1284. Apparently they're working on a fix but I don't see a release date or anything. Until then you can try following the workaround here https://stackoverflow.com/questions/70382084/import-error-force-text-from-django-utils-encoding or moving to a lower Django version.
As soon as graphene-django supports Django 4 I will upgrade the graph-wrap graphene-django dependency to also support Django 4.

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