question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ariadne is not compatible with graphql-core 3.1

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
rafalpcommented, Apr 7, 2020

GraphQL Core 3.1 has been released, so this task can land as part of Ariadne 0.12

1reaction
rafalpcommented, Jul 19, 2020

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found