Getting the error : ImportError: cannot import name 'to_const'

Viewed 211

getting the following import error in my Django(graphene) application, is there a workaround ?

from graphene.utils.str_converters import to_camel_case, to_const
ImportError: cannot import name 'to_const'
2 Answers

Error : ? the above error results from package upgrade, that causes mismatches in dependencies

Solution : ? To clear the error above i downgraded the following packages to the versions shown below:

aniso8601==7.0.0 
graphene==2.1.8
graphql-core==2.3.2
graphql-relay==2.0.1

and the error cleared.

Related