https://pulumi.com logo
#general
Title
# general
r

rough-hydrogen-27449

10/15/2021, 7:26 PM
Hi, I'm running into a strange issue with a dynamic provider where it appears a pulumi dependency called
dill
is hitting the recursion limit trying to serialize something with
pickle
... Is there something I should be doing to avoid this? FWIW here's the tail end of a very long stack trace:
Copy code
File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/dill/_dill.py", line 990, in save_module_dict
        StockPickler.save_dict(pickler, obj)
      File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/pulumi/dynamic/dynamic.py", line 221, in save_dict_sorted
        self._batch_setitems(sorted(obj.items())) # pylint: disable=protected-access
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 885, in _batch_setitems
        save(v)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 549, in save
        self.save_reduce(obj=obj, *rv)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 637, in save_reduce
        save(func)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 504, in save
        f(self, obj) # Call unbound method with explicit self
      File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/dill/_dill.py", line 1423, in save_type
        obj.__bases__, _dict), obj=obj)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 638, in save_reduce
        save(args)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 504, in save
        f(self, obj) # Call unbound method with explicit self
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 789, in save_tuple
        save(element)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 504, in save
        f(self, obj) # Call unbound method with explicit self
      File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/dill/_dill.py", line 990, in save_module_dict
        StockPickler.save_dict(pickler, obj)
      File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/pulumi/dynamic/dynamic.py", line 221, in save_dict_sorted
        self._batch_setitems(sorted(obj.items())) # pylint: disable=protected-access
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 885, in _batch_setitems
        save(v)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 549, in save
        self.save_reduce(obj=obj, *rv)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 637, in save_reduce
        save(func)
      File "/home/jgrillo/.pyenv/versions/3.7.10/lib/python3.7/pickle.py", line 502, in save
        f = self.dispatch.get(t)
      File "/home/jgrillo/src/confluent-cloud-infrastructure/build-support/venv/lib/python3.7/site-packages/dill/_dill.py", line 434, in get
        return self[key]
    RecursionError: maximum recursion depth exceeded
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
1