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

ImportError: cannot import name 'Value' from 'graphql.language.ast' #74

Closed
ivica-k opened this issue Dec 1, 2019 · 6 comments
Closed
Assignees
Labels
bug Something isn't working waiting-input

Comments

@ivica-k
Copy link

ivica-k commented Dec 1, 2019

Hello and thank you for this library.

I encountered an issue when trying to generate Python code from a known GraphQL schema using the tool you provided. Simply running it without any inputs produces:

sgqlc-codegen 
Traceback (most recent call last):
  File "MY/VENV/PATH/bin/sgqlc-codegen", line 12, in <module>
    from graphql.language.ast import Value as GraphQLASTValue
ImportError: cannot import name 'Value' from 'graphql.language.ast'

I have sgqlc v9.0 installed locally. If I can provide any more info please don't hesitate to ask.

@NickHilton
Copy link

@ivica-k - Before this PR gets merged you or we decide on a different fix, you can pip install -e git://github.com/NickHilton/sgqlc.git@graphql-explicit-version#egg=sgqlc (i.e. the branch from that PR) to get sgqlc working again in your project

@barbieri barbieri self-assigned this Dec 2, 2019
@barbieri barbieri added the bug Something isn't working label Dec 2, 2019
@barbieri
Copy link
Member

barbieri commented Dec 2, 2019

See if efa0269 fixed it

@barbieri
Copy link
Member

barbieri commented Dec 3, 2019

Released as https://pypi.org/project/sgqlc/9.1/ see if fixes the issue, if so then close.

@ivica-k
Copy link
Author

ivica-k commented Dec 3, 2019

Thank you for a very quick response and fix. Will look into it tomorrow most probably.

@barbieri
Copy link
Member

could you verify? I think it's fixed now.

@ivica-k
Copy link
Author

ivica-k commented Dec 11, 2019

Works like a charm, sorry for not replying earlier. Thank you very much for a quick fix.

@ivica-k ivica-k closed this as completed Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting-input
Projects
None yet
Development

No branches or pull requests

3 participants