LoginSignup
5
0

More than 5 years have passed since last update.

python pickleでRuntimeError: maximum recursion depth exceeded while pickling an objectが出る場合

Posted at

python pickleでオブジェクトを保存するときに

RuntimeError: maximum recursion depth exceeded while pickling an object

が出る場合の対処

import sys
sys.setrecursionlimit(10000)

引数の数値は適当に。
なお自分の場合440万単語のトライ木を保存するときに上記数値で保存できた。

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0