sadovnychyi commented on PR #27646:
URL: https://github.com/apache/beam/pull/27646#issuecomment-1652625744
> I wonder if overriding AbstractDoFnWrapper__getattr__ would help:
It falls into a recursion like so:
```
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/runners/direct/transform_evaluator.py",
line 834, in start_bundle
pickler.loads(pickler.dumps(transform.dofn))
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/internal/pickler.py",
line 51, in loads
return desired_pickle_lib.loads(
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/internal/dill_pickler.py",
line 422, in loads
return dill.loads(s)
^^^^^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/.venv/lib/python3.11/site-packages/dill/_dill.py",
line 275, in loads
return load(file, ignore, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/.venv/lib/python3.11/site-packages/dill/_dill.py",
line 270, in load
return Unpickler(file, ignore=ignore, **kwds).load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/.venv/lib/python3.11/site-packages/dill/_dill.py",
line 472, in load
obj = StockUnpickler.load(self)
^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/typehints/typecheck.py",
line 57, in __getattr__
return getattr(self.dofn, attr)
^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/typehints/typecheck.py",
line 57, in __getattr__
return getattr(self.dofn, attr)
^^^^^^^^^
File
"/Users/sadovnychyi/github.com/beam/sdks/python/apache_beam/typehints/typecheck.py",
line 57, in __getattr__
return getattr(self.dofn, attr)
^^^^^^^^^
[Previous line repeated 2985 more times]
RecursionError: maximum recursion depth exceeded while calling a Python
object
----------------------------------------------------------------------
Ran 8 tests in 2.809s
FAILED (errors=1)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]