graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.28k stars 766 forks source link

Could not import 'myapp.schema.schema' for Graphene setting 'SCHEMA'. ModuleNotFoundError: No module named 'urllib3.packages.six.moves'. #1524

Closed hazho closed 3 months ago

hazho commented 3 months ago

when tunning server and visiting the site, I get the error : Could not import 'framework.schema.schema' for Graphene setting 'SCHEMA'. ModuleNotFoundError: No module named 'urllib3.packages.six.moves'.

the related setting part is:

GRAPHENE = { 'SCHEMA': 'framework.schema.schema', 'MIDDLEWARE': [ 'graphql_jwt.middleware.JSONWebTokenMiddleware', ], } and the module "framework/framework/schema.py" already created based on the documentations in graphene and django-graphene

simply running without this error

kiendang commented 3 months ago

you need the python six package