profusion / sgqlc

Simple GraphQL Client
https://sgqlc.readthedocs.io/
ISC License
513 stars 85 forks source link

AttributeError: 'GraphQLToPython' object has no attribute 'enter_leave_map' #186

Closed noa-upstream closed 2 years ago

noa-upstream commented 2 years ago

Hi, After successfully generated the schema.py file, I am trying to use "sgqlc-codegen operation" but I am getting the following error:

AttributeError: 'GraphQLToPython' object has no attribute 'enter_leave_map'

Any thoughts on it?

barbieri commented 2 years ago

usually this is an incorrect version of graphql-core, do you mind checking? I'm testing with 3.1.6...

noa-upstream commented 2 years ago

you are right, when I uses 'pip install sgqlc', graphql-core 3.2.0 were installed, I changed it and it fixed the problem. Thanks @barbieri

barbieri commented 2 years ago

ok, are you sure it was 3.2.0? If that's the case then I need to make it compatible :-( usually that crash is with 2.x versions

noa-upstream commented 2 years ago

yes, it was 3.2.0 :/

barbieri commented 2 years ago

@noa-upstream this should be fixed in master, if you need to use 3.2.0 that should work. I'll do a release later