Closed dand-oss closed 1 year ago
I would advise to drop the import of _pickle now.
Thanks for fixing this! Any idea when it might be included in a release?
(And for anyone googling it, symlinking pickle.py
to _pickle.py
will do the trick temporarily:
ln -s /opt/pypy/lib/pypy3.8/pickle.py /opt/pypy/lib/pypy3.8/_pickle.py
)
@bartbroere really? just symlinking fixed the problem?
That did not work for me.
@bartbroere really? just symlinking fixed the problem?
That did not work for me.
Maybe I should have tested it a bit more, but we hit this part of cloudpickle
through scikit-learn
and joblib
. When importing a metric from sklearn.metrics
PyPy failed on the missing _pickle
module. Since our code didn't actually use joblib
or cloudpickle
, the main thing it fixed was the errors on import of our metric.
Because joblib
includes a copy of cloudpickle
just pip installing the master here wasn't an option. For your use case, perhaps pip installing the current master is a better idea, since it's already fixed, just not yet released.
I think this can be closed, since it has been fixed by https://github.com/cloudpipe/cloudpickle/pull/469.
Also #480 added pypy3.9 to the CI for testing, which is passing.
Thanks all! 🙏
Closing as resolved
pypy 3.8 release 7.3.6 does not find c extension _pickle