Skip to content Skip to sidebar Skip to footer

Runtimeerror: Maximum Recursion Depth Exceeded With Python 3.2 Pickle.dump

I'm getting the above error with the code below. The error occurs at the last line. Please excuse the subject matter, I'm just practicing my python skills. =) from urllib.request i

Solution 1:

Just want to contribute an answer for anyone else who may have this issue. Specifically, I was having it with caching BeautifulSoup objects in a Django session from a remote API.

The short answer is the pickling BeautifulSoup nodes is not supported. I instead opted to store the original string data in my object and have an accessor method that parsed it on the fly, so that only the original string data is pickled.

Post a Comment for "Runtimeerror: Maximum Recursion Depth Exceeded With Python 3.2 Pickle.dump"