ModuleNotFoundError: No module named 'graphql'
See original GitHub issueThe Python virtual environment use created with virtualenv ,python version is
#python --version
Python 3.7.3
When I execute the following commands:
#py.test graphene/relay/
The following error occurred:
Hint: make sure your test modules/packages have valid Python names.
Traceback:
graphene/__init__.py:3: in <module>
from .types import (
graphene/types/__init__.py:2: in <module>
from graphql import GraphQLResolveInfo as ResolveInfo
E ModuleNotFoundError: No module named 'graphql'
But when I execute the following commands install graphql extension,have following error:
# pip install graphql
Complete output (10 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.7
creating build/lib.macosx-10.7-x86_64-3.7/graphql
copying graphql/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/graphql
running build_ext
building 'graphql_ext' extension
error: unknown file type '.pyx' (from 'graphql/graphql_ext.pyx')
----------------------------------------
ERROR: Failed building wheel for graphql
I wonder if you have encountered this problem.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
ModuleNotFoundError: No module named 'graphql'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'graphql' How to remove the ModuleNotF.
Read more >Ariadne Python - No module named 'graphql.type'
I am getting following error when using latest ariadne 0.16.1 with graphql-core 3.2.3 and Python 3.10. It's a FastAPI app.
Read more >graphql-core - PyPI
GraphQL implementation for Python. ... First, build a GraphQL type schema which maps to your code base. from graphql import ( graphql, GraphQLSchema, ......
Read more >Installation - Django GraphQL Auth
pip install django-graphql-auth. For those that are not installed, this will automatically install graphene , graphene-django , django-graphql-jwt ...
Read more >[Answered]-Django-Graphene: No module named 'graphql_jwt'
I'm trying to implement authentication with Django and GraphQL/graphene. I've run into the error No module named 'graphql_jwt'. and the solutions I've found ......
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
I got the same problem, i had a graphql named folder in the root
Fixed with
I got the same error: error: unknown file type ‘.pyx’ (from ‘graphql/graphql_ext.pyx’)
These commands worked for me to get rid from graphql errors. pip install pip --upgrade pip install setuptools --upgrade pip install gql[all]