-
Notifications
You must be signed in to change notification settings - Fork 86
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
TypeError: cannot unpack non-iterable DirectiveDefinitionNode object #197
Comments
hi @paras-jindal, you need to provide the full backtrace and if possible a way to reproduce it, otherwise I'm clueless. |
also share your setup, in particular the versions, including graphql-core. |
i am so sorry for the inconvinience , i should have quoted my error along with these things user@host$ python3 -m sgqlc.introspection to generate the mentioned files and it worked perfectly fine, then i generated a schema.gql file and tried to create operations.py file but its throwing error
TypeError: cannot unpack non-iterable DirectiveDefinitionNode object i tried to change verison,but still not working |
could you try to run https://github.com/profusion/sgqlc/tree/master/examples/github? ./update-schema.sh
./update-operations.sh I just tested with Git and it works properly (it will download an updated github_schema.json/py, but other than that the script works as expected. Worth checking with recent git (instead of 15.0), there are some fixes... I just checked and they shouldn't impact, but maybe that's the case. |
hey, |
plus now i am trying it again then its throwing a different error 'GraphQLToPython' object has no attribute 'enter_leave_map' |
Just clone this repository, then If they don't, then go to the repository root folder and execute NOTE: if you don't want to use a GitHub Authorization token, just |
i just followed the mentioned steps and iw as able to do o in environment which i am using without pipenv as well as in pipenv , but the format of schema.gql i got is different then the .gql file in github repository |
which Then we have sample_operations.gql, this is manually written and represent the query/mutation you'd send to the server. |
thanks , let me try this and get back to you once i get my answer |
while using the code generator to generate operations file i am receiving this particular error
The text was updated successfully, but these errors were encountered: