-
Notifications
You must be signed in to change notification settings - Fork 249
RuntimeError: maximum recursion depth exceeded #1251
Comments
Could you provide more information when this happens? |
Hi @nikhilk From Datalab, Never had any issues running this, but since updating to the newest version, I got the Runtime Error. Not still not sure about whether it is related. Thx |
@HaipengSu shared a link to a notebook session which is currently in a failed state. The issue only occurs in this specific notebook session. If I open a new notebook and run the same code the issue disappears.
I'm still looking into this but at first glance it appears that the recursion is happening in
Here are the results after upgrading to oauth2client==4.0.0
|
Thx @parthea for keeping track on this issue. |
Here is some code that @HaipengSu and I used to create the issue locally:
results in
The issue appears to be resolved if we revert the changes made in googledatalab/pydatalab#195 . |
It looks like the source of the bug is that every time an HTTP request is issued, the call to Then, when In essence, we have a leak where the level of method wrapping grows unbounded, and eventually hits the recursive depth limit. We can avoid this if the number of I'll try making a copy of the shared instance before adding the credentials, and see if that prevents the bug. |
Thank you all for looking into this. |
googledatalab#296) * Fix a bug where an unbounded number of credentials wrappers got added. This fixes googledatalab#1251, where the fact that we were sharing a single `httplib2.Http` instance caused each request to add an additional credentials wrapper around that single instance. That, in turn, caused a `RuntimeError: maximum recursion depth ...` error message once too many API calls had been made. * Only copy the http instance when we need to * Include the fix for authorizing HTTP requests in the older `datalab` module
Hi,
After updating the Datalab to the newest version, I got this Runtime Error.
RuntimeError: maximum recursion depth exceeded
Apparently, this is related to the depth of recursive calls.
For the same notebook, I didn't get the Runtime Error before, but only for the new Datalab. Is there any change related to this issue?
Thank you.
Or should I just use
import sys sys.setrecursionlimit(10000)
to increase the recursion limit?
The text was updated successfully, but these errors were encountered: