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_exin 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. |
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_functionfor dill 0.3.6save_codeand_save_regexfor dill 0.3.6Fix #5162.