-
Notifications
You must be signed in to change notification settings - Fork 3k
Support dill 0.3.6 #5166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dill 0.3.6 #5166
Conversation
The documentation is not available anymore as the PR was closed or merged. |
I think it hasn't been merged ? uqfoundation/dill#501 Though I can see that the CI is green because it uses dill 0.3.1.1 - we should probably fix the dill version in both CIs:
|
I have noticed our CI uses |
The dill version in our CI is due to |
I've tested locally: we need a specific fix for 0.3.6 (different from the previous ones)... |
I think we can force the version of dill to be whatever we want in the CI - no matter what beam says. The alternative would be to run beam tests separately but it's more work |
@lhoestq I tried the easiest solution: force dill==0.3.6 ignoring the requirement of apache-beam. But it doesn't work:
I guess we should implement the other option: run beam tests separately. I'm opening another PR for the CI refactoring. |
Ah crap >< maybe only install apache_beam for the "minimum requirements" CI |
@lhoestq if we install apache-beam only in the "minimum requirements" CI, then this other PR should be merged first: Otherwise, our CI for "latest" will fail because it will try to run the beam tests (because PyTorch is installed but indeed apache-beam is not installed). |
One of the test is failing because we set # google colab doesn't allow to pickle loggers
# so we want to make sure each tests passes without pickling the logger
def reduce_ex(self):
raise pickle.PicklingError()
datasets.arrow_dataset.logger.__reduce_ex__ = reduce_ex in Now pickling the logger seems to be working on google colab again - so you can remove it, and it should fix some tests |
For the other 2 errors:
I have implemented a pickable MagicMock. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome thank you !
This PR:
Unpins dill to allow installing dill>=0.3.6Removes the fix on dill for >=0.3.6 because they implemented a deterministic mode (to be confirmed by @anivegesana)save_function
for dill 0.3.6save_code
and_save_regex
for dill 0.3.6Fix #5162.