Solution: RuntimeError: maximum recursion depth exceeded while calling a Python object


This Type of Error getting on Production Setup, not on local Setup
So Before using of Recursion method in development import following methods in your python file
import sys
and call the following method before calling the recursion method
sys.setrecursionlimit(100000)
Note :- This is not a proper solution to increase the recursion limit but if you’re stuck on it, use this way out