A workaround is referenced in this issue, but it involves installing dask (or pulling the SerializableLock class into my project) and for some reason even though this workaround allows me to pickle and unpickle a gin configured class, I have to run gin.parse_config_files_and_bindings again after unpickling so that the instance works properly: https://github.com/google/gin-config/issues/8
apologies in advance as I had to type this on my phone
I'm getting the following error when trying to pickle an instance of a class that is configured with gin:
Error:
Code that triggers the error:
A workaround is referenced in this issue, but it involves installing dask (or pulling the SerializableLock class into my project) and for some reason even though this workaround allows me to pickle and unpickle a gin configured class, I have to run gin.parse_config_files_and_bindings again after unpickling so that the instance works properly: https://github.com/google/gin-config/issues/8