I am trying to import several libraries:
from ariadne import load_schema_from_path, make_executable_schema, \
graphql_sync, snake_case_fallback_resolvers, ObjectType
But when running this I get this Error:
ModuleNotFoundError: No module named 'graphql.pyutils.undefined'
Before that I downgraded to a lower graphql-core version by using pip install "graphql-core<3.1"because I got this ImportError:
ImportError: cannot import name 'PLAYGROUND_HTML' from 'ariadne.constants'
What can I do to solve this?
Got the same issue here.
I noticed
ariadne0.18was not compatible withgraphql-core<3.1.Then I downgraded
ariadneto0.17.This way my server (I'm using Flask) runs on
http://127.0.0.1:5000/and the playground is accesible onhttp://127.0.0.1:5000/graphql.Not ideal but it worked out for me.