import graphene not working
See original GitHub issueimport graphene
gives me the following error
Traceback (most recent call last):
File ".../app.py", line 1, in <module>
import graphene
File ".../anaconda/lib/python3.6/site-packages/graphene/__init__.py", line 3, in <module>
from .types import (
File ".../anaconda/lib/python3.6/site-packages/graphene/types/__init__.py", line 2, in <module>
from graphql import ResolveInfo
ImportError: cannot import name 'ResolveInfo'
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to solve "Could not import 'todo.schema ... - Stack Overflow
You have a typo at text = graphene.string(Required=True) . It also says in the error that graphene doesn't have an attribute string.
Read more >install - graphene - django
Add graphene_django to the INSTALLED_APPS in the settings.py file of your Django project: ; We need to add a graphql URL to the...
Read more >graphene - PyPI
import graphene class Query(graphene. ... We appreciate opening issues and pull requests to make graphene even more stable & useful!
Read more >Graphene Documentation - Read the Docs
from graphene import ObjectType, String, Schema ... By default all field and argument names (that are not explicitly set with the name arg) ......
Read more >Error Handling - graphql-python
In this chapter, you'll understand how GraphQL and Graphene address these issues. Schema Errors. Being a language with a strong type system, GraphQL...
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 FreeTop 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
Top GitHub Comments
EDIT: I had a folder called graphql in my path. Changing its name fixed this.
I have the same issue:
@mbrochh if you install the latest version of graphene-django (2.4.0) it should resolve graphql-core correctly.