acoustic-carpenter-78188
03/15/2024, 9:34 PMimport pickle
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config
remote = FlyteRemote(
config=Config.auto(),
default_project="flytesnacks",
default_domain="development"
)
pickle.dumps(remote)
AttributeError: Can't pickle local object 'get_flyte_fs.<locals>._FlyteFS'
The issue stems the nested class here:
https://github.com/flyteorg/flytekit/blob/d61e79e722875348b1ccd354e1076fcf12600053/flytekit/remote/remote_fs.py#L91
I am using python 3.12.1, flytekit==1.11.0.
Expected behavior
flytekit remote objects are serializable with pickle
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
03/15/2024, 9:34 PM