graphql-python / gql

A GraphQL client in Python
https://gql.readthedocs.io
MIT License
1.54k stars 179 forks source link

Error when importing gql.dsl #12

Closed thedrow closed 7 years ago

thedrow commented 7 years ago
from gql import dsl
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-d63fa713ec57> in <module>()
----> 1 from gql import dsl

/Users/omer.katz/.virtualenvs/playground/lib/python3.5/site-packages/gql/dsl.py in <module>()
      6 from graphql.language import ast
      7 from graphql.language.printer import print_ast
----> 8 from graphql.type import (GraphQLField, GraphQLFieldDefinition, GraphQLList,
      9                           GraphQLNonNull, GraphQLEnumType)
     10

ImportError: cannot import name 'GraphQLFieldDefinition'

I tried to upgrade to graphql-core's master but it seems like the class is not defined anymore

thedrow commented 7 years ago

Can we please release a new version?