33 questions
-1 votes
2 answers
167 views
Why does python limit recursion depth, and how is this limit decided?
# Iterative factorial function to safely compute very large factorials without hitting Python's recursion limit. # Recursive functions have a maximum depth, usually 1000, and factorial(2000) would ...
0 votes
0 answers
93 views
Saving region properties from skimage.measure to a pickle file raises RecursionError: maximum recursion depth exceeded
In my analysis code, I am performing some image properties analysis using skimage.measure.regionprops. In order to save processing time, I would like to save the region properties to a file and I was ...
2 votes
0 answers
156 views
Selenium Python - RecursionError('maximum recursion depth exceeded in comparison')
when executing the Selenium Python script, the following terrible error appears: object address: 000001340 object refcount: 2 object type: 00007FFA03482550 object type name: RecursionError object repr:...
1 vote
1 answer
40 views
Why can't a reference to a not imported module be made if the same module is imported in error-handling?
Given this python script: def s(): try: time.sleep(1) except NameError: import time s() for i in range(10): s() print(i) This gives me a RecursionError, but I ...
0 votes
1 answer
58 views
Turtle crashing after many moves
I'm messing around with recursion and decided to turtle. I'm trying to get some code to build a Sierpenski Triangle and it's working pretty well so far! However, when I plug in larger values of n to ...
0 votes
2 answers
125 views
i dont know what caused this Recursion Error
I am making a customtkinter game that is basically Cookie Clicker but themed around beans. and by suggestions from another thread I added Threading, which I'm having a hard time implementing, and ...
0 votes
0 answers
85 views
AttributeError and RecursionError happened when using `__setattr__` in python
I used super() as a part of the __setattr__ method to update a dictionary whenever an attribute value is set on an instance of a class; however, a warning reported as my class object has no such ...
0 votes
0 answers
288 views
Airflow not loading DAGs after upgrading to 2.4.2 or higher
I have perfectly configured Airflow v2.4.1 application working over Docker, which when upgraded to v2.4.2 or higher fails to load DAGs. I tried every possible solutions but no use. When playing around ...
-4 votes
1 answer
3k views
How to fix RecursionError: maximum recursion depth exceeded
Here's the question: 07. Define a function named import_zip_codes_json() which imports the zip_codes.json as a list in working directory. Here's the code: import json with open('zip_codes.json') as ...
0 votes
0 answers
313 views
R reticulate: Error in py_call_impl(callable, dots$args, dots$keywords): RecursionError: maximum recursion depth exceeded
I have the following python function to extract unique object names in an AWS S3 bucket, and it passed the test runs in python: ############################### # aws_get_session_name_fuc.py # #########...
1 vote
2 answers
227 views
How to fix a RecursionError in Turtle?
I'm trying to write a program with Python to emulate an 'old' online game in which you drive a worm through the screen with some inputs from the keyboard. import turtle # Set screen and background wn ...
0 votes
1 answer
117 views
Implementing heap sort algorithm in Python receiving recursion error when running
Im trying to implement the heap sort algorithm to sort a list but receiving the following error code: RecursionError: maximum recursion depth exceeded Please let me know if you find any issues I will ...
-1 votes
1 answer
127 views
How can i solve this inequality in python? RecursionError: maximum recursion depth exceeded while getting the str of an object
I am trying to get the interval of acceptable values in this inequality: 12/300 < 0.45*sympy.sqrt(Ro/(2*f*x)) where R is calculated in the code. I want the interval of x. How can I get it? #...
1 vote
1 answer
142 views
Recursion Error when Accessing Histograms from Root File using uproot in a Jupyter Notebook
I've made root files with histograms through another program, and I'm trying to extract this histograms in a Jupyter notebook using Python3 to do various bits of analysis on these histograms. In the ...
-1 votes
1 answer
149 views
Recursion error with if statement when changing items in PYQT5 table python
I have a table in pyqt5 and when I modify a cell I call a method(changeIcon), inside this method I use an if statement to check which column has been changed and based on the column I change some ...