Open trein opened 9 years ago
Hey @trein Do you still see this problem if you cherry-pick commit 06cb9e00afa9870eca3c034335aadf6eb27f6040?
@pooya Just tested this morning. I'm still getting the same error. The function _compile
still being considered as non STD.
Hi,
I'm currently developing some tools with Disco (v0.4.5) to automate a few repetitive tasks and I came across a problem while using virtualenv. I created a very simple MR job that reproduces the problem I'm currently experiencing:
The error that I get just after dispatching the job is:
It seems that Disco is trying to pickle the function
_compile
from there.py
module. I did some debugging and figured out the method dPickle.save_func() is not correctly detectingre._compile
as a standard library function when virtualenv is activated.I fixed the problem patching the dPickle.is_std() method as follows:
This is kind of ugly and not very robust solution in my opinion. I would appreciate your input on how it could be improved.
Thanks,