-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
PyPy in docker with Jupyter with 0.20.rc1 #11971
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
Comments
As described here, it should be:
|
If you find missing parts/libraries in my container, please open issues at the source repo: |
Thanks for the report! Indeed there was an update of the vendored version of joblib which includes loky since the PyPy PR was merged. This went undetected as currently we are still not running PyPy CI (need to fix that). To fix this issue, one would need to make a PR to https://github.com/tomMoral/loky to fix this. Once it is fixed there (or at least the tests pass), we can make another PR in scikit-learn and hot-fix it here. Would you be interested in making that PR? For the rest, you can try to run tests with,
to at least some test results meanwhile. For the time being you can also patch this import issue inside your docker container. |
Opened issue 157 in loky. |
@rth tried with before the fix:
got pytest.log does not go much more forward. |
after the fix pytest takes a much longer time, good sign!
|
got this pytest.log. Appears ok, waiting for your comments. |
applied the fix to the Dockerfile, updated on docker hub, pulled a fresh container locally and got this |
Thanks for the logs! Essentially parallel processing with the updated joblib 0.12 that uses loky doesn't seem to work in PyPy (I will open an issue about it). The rest is fine. It means that in this version when PyPy users use any estimator with A workaround could be to use the previous version of joblib,
that should fix the remaining issues. |
ok I will try, thanks. |
PyPy support was added to loky in https://github.com/tomMoral/loky/pull/161, marking this as blocker for the final 0.20 release to indicate that we would need to sync with the latest loky/joblib version once they are released. Also we need to re-add CI to prevent something like this from happening again. |
Great! Let me know how I can help. |
Well we would need to make a PR that,
Feel free to make the PR ) Once the CI green, we would then need to way for the joblib (inlcuding loky) to be updated in scikit-learn to the latest released version before merging it. |
The |
Can't we just test it in a PR? Just updating loky there wouldn't work? To avoid a situation that for another minor patch to loky, we need to make joblib & loky releases.. |
This is the issue with nested vendoring but I don't think it is such a good idea to start to rely on modified version of If we want to be able to modify That being said, as |
@giodegas Can you please check that your use case work fine with joblib 0.12.4? pip install joblib==0.12.4
export SKLEARN_SITE_JOBLIB=true |
It might make sense to add pypy Travis at least to the 0.20.X branch, and perhaps on Cron to master |
This should fix #11971 (fixed PyPy support, pypy3 is now part of the joblib build matrix on travis). It should also be backported to 0.20.X.
You mean to run the scikit-learn tests with pypy on travis (or circle ci) in a cron job? I agree. |
BTW, I am currently running the scikit-learn tests on master with pypy3 and so far (50%) they pass. |
I got a core dump when running |
I did a new run of the rebuilt container, got this sklearn_test.log with the outcome:
|
It appears the same as previous runs. How can I get the latest of all, without applying patches?
|
You would need to install from master,
but for now there will be a few failures, mostly in doctests. I'm trying to fix the remaining ones in #12039 |
ok I will wait for the #12039 before testing again, thank you. |
Running
in a docker container with
The error:
shows up.
(you may not get the latest updated container from the docker hub site, since it is slow, I am working with a local copy).
The text was updated successfully, but these errors were encountered: