sanic-graphql icon indicating copy to clipboard operation
sanic-graphql copied to clipboard

wrong graphql-core version installed

Open cscetbon opened this issue 7 years ago • 1 comments

Hey,

I'm testing sonic-graphql and I've noticed that when I install it, it tries to install graphql-core>=2.1rc1 but installs graphql-core 2.0 instead https://pastebin.com/raw/BhAyEWCd

which then makes sanic-graphql fail on :

from graphql import get_default_backend
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-01959c5bc935> in <module>()
----> 1 from graphql import get_default_backend

ImportError: cannot import name 'get_default_backend'

If instead I first install graphql-core==2.1rc1 I don't have any issue

cscetbon avatar Jun 18 '18 23:06 cscetbon

pip3 install graphql-core==2.0; pip3 install graphql-core==2.1; solves issue for me

ilyakitaev avatar Aug 28 '18 13:08 ilyakitaev