It is found that the default recursion depth of Python is very limited (the default is 1000), so when the recursion depth exceeds 999, such an exception will be thrown.
Solution:
You can modify the value of recursion depth to make it larger
import sys
Sys.setrecursionlimit (100000) # for example, it is set to 100000 here
be careful:
This solution is not the root cause, but also needs to be optimized in the code.
Read More:
- [Solved] Np.argwhere error: maximum recursion depth exceeded while calling
- Python Pandas Typeerror: invalid type comparison
- [Solved] D455 Depth Camera Error: keyerror: ‘frame_ device_ t‘
- Set the maximum number of Postgres connections Error [How to Solve]
- Python Requests Error: Max retries exceeded with url
- [Solved] Jupyter runs error: IOPub data rate exceeded
- [Exception]’ascii’ codec can’t decode byte 0xe8 in position 2: ordinal not in range(128)
- RuntimeWarning: overflow encountered in ubyte_Scalars pixel addition and subtraction overflow exception
- [Solved] Error “incorrect padding” in decoding of Base64 module in Python
- [Solved] Grid Search Error (GridSearchCV): ‘ascii‘ codec can‘t encode characters in position 18-20: ordinal not in r
- SyntaxError: Non-UTF-8 code starting with ‘\xe4‘ in file [How to Solve Chinese encoding problem]
- How to Solve Turtle_tf Error in ROS
- “EncoderDecoder: ‘mit_b1 is not in the backbone registry‘“ [How to Solve]
- [Solved] pip Fatal error in launcher: Unable to create process using
- [Solved] RuntimeError: Error(s) in loading state dict for YOLOX:
- How to Fix keyerror in Python dictionary lookup
- An introduction to sys modules in Python and how packages are imported and used
- How to Fix “HTTP error 403: forbidden” in Python 3. X
- SyntaxError: Non-ASCII character ‘\xe5‘ in file [How to Solve]
- Python recursively traverses all files in the directory to find the specified file