-
Notifications
You must be signed in to change notification settings - Fork 766
Description
Hello,
I am currently working on a large Django project that utilizes the Graphene framework to implement GraphQL in the application. I've encountered an issue while attempting to run the project, where a SyntaxError is raised, pointing to the graphene_django/__init__.py file on line 1.
Error message:
SyntaxError: invalid syntax
File "/media/fares/01D884D05EFC32C0/Projects When Learn/GraphQl/graphql/books/urls.py", line 3, in <module>
from graphene_django.views import GraphQLView
File "/media/fares/01D884D05EFC32C0/Projects When Learn/GraphQl/graphql/.venv/lib/python3.11/site-packages/graphene_django/__init__.py", line 1
xfrom .fields import DjangoConnectionField, DjangoListField
Upon investigating the issue, I noticed that there is a mistake in the import statement in the graphene_django/__init__.py file on the first line. An extra "x" character was mistakenly included at the beginning of the line.

The correct import should be as follows:
from .fields import DjangoConnectionField, DjangoListFieldPlease review your imports in this file and related files to ensure proper syntax.
I hope this information proves helpful, and feel free to reach out if you need further assistance or have additional questions.
Thank you very much!