Hi! We are experiencing some issues with pickling ...
# agents
b
Hi! We are experiencing some issues with pickling of our entrypoint function and are uncertain what it is that causes it. 99% of the time, this is a non-issue on our servers except for this singular case. Specifically:
Copy code
Can't pickle <function entrypoint at 0x7f5c2de5b7e0>: it's not the same object as path.to.entrypoint_function
Is anybody able to shed some light on this? the WorkerOptions class in livekit.agents.worker has a pretty clear note :
Copy code
# NOTE: this object must be pickle-able
@dataclass
class WorkerOptions:
Suggesting at least a degree of awareness that this might occur. Would also like to note that this works fine for one instance, but not another running the exact same docker image. We originally thought it might be related to importing the function from another file but it seems not to be the case. I understand the context is a bit limited without seeing code, but any help would be appreciated.