Ariadne is not compatible with graphql-core 3.1
See original GitHub issueHi folks,
I’m hitting this error with the very example at https://www.starlette.io/
from starlette.applications import Starlette
from starlette.responses import JSONResponse
from starlette.routing import Route
async def homepage(request):
return JSONResponse({'hello': 'world'})
app = Starlette(debug=True, routes=[
Route('/', homepage),
])
File "./example.py", line 1, in <module>
from ariadne import QueryType, make_executable_schema
File "x/lib/python3.8/site-packages/ariadne/__init__.py", line 11, in <module>
from .graphql import graphql, graphql_sync, subscribe
File "x/lib/python3.8/site-packages/ariadne/graphql.py", line 18, in <module>
from graphql.validation.rules import RuleType
❯ python --version
Python 3.8.2
❯ pip freeze | grep "ariadne"
ariadne==0.10.0
❯ python -c "import graphql; print(graphql.__version__)"
3.1.0b2
Digging a bit:
Looks like this commit from graphql-python
removed RuleType
from graphql.validation.rules
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Python Ariadne GraphQL "cannot import name ...
At the moment Ariadne is not compatible with many of the graphql-core, so the version should be between 3.0 and 3.1 for Ariadne...
Read more >graphql-core - PyPI
Note that Graphene 2 is not compatible with GraphQL-core 3. ... Ariadne is a Python library for implementing GraphQL servers using schema-first approach ......
Read more >Blog · Ariadne
Ariadne 0.13 is a maintenance release that brings speed improvements and Python 3.9 support of GraphQL core 3.1 to the library!
Read more >Ariadne Documentation
Simple, quick to learn and easy to memorize API. • Compatibility with GraphQL.js version 14.0.2. • Queries, mutations and input types.
Read more >graphene Changelog - pyup.io
Non -required `InputFields` and `Arguments` can now be marked as deprecated by passing the ... Make Graphene compatible with GraphQL-Core 3.2 by Cito...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
GraphQL Core 3.1 has been released, so this task can land as part of Ariadne 0.12
@nikordaris I don’t think so. Can’t you create custom branch on your repo and update your project’s deps to use git URL in the meantime?