Remove_docker_image:238 - Image build failed, not removing old images

Hi, please could I ask about an error I kept encountering after submission?

My Submission ID is SubmissionID: 121441.

I have tried to upgrade pip but seem to be not helping.

Please see the following msg:
Collecting numpy
Downloading numpy-1.20.1-cp38-cp38-manylinux2010_x86_64.whl (15.4 MB)
Collecting pandas
Downloading pandas-1.2.2-cp38-cp38-manylinux1_x86_64.whl (9.7 MB)
e[91mERROR: Could not find a version that satisfies the requirement scikit-learn== (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2, 0.21.1, 0.21.2, 0.21.3, 0.22rc2.post1, 0.22rc3, 0.22, 0.22.1, 0.22.2, 0.22.2.post1, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.dev0, 0.24.0rc1, 0.24.0, 0.24.1)
ERROR: No matching distribution found for scikit-learn==
e[0me[91mWARNING: You are using pip version 20.1.1; however, version 21.0.1 is available.
You should consider upgrading via the ‘/usr/local/bin/python -m pip install --upgrade pip’ command.
e[0m2021-02-14 16:58:08.548 | INFO | main:unzip_submission:55 - Unzipping the submission file
2021-02-14 16:58:08.548 | INFO | main:check_submission_file_type:93 - Checking submission file type
2021-02-14 16:58:08.548 | SUCCESS | main:check_submission_file_type:99 - Validated submission file type
2021-02-14 16:58:08.555 | SUCCESS | main:unzip_submission:88 - Extracted submission file to /src/submission.zip
2021-02-14 16:58:20.224 | INFO | main:remove_docker_image:238 - Image build failed, not removing old images
2021-02-14 16:58:08.548 | INFO | main:unzip_submission:55 - Unzipping the submission file
2021-02-14 16:58:08.548 | INFO | main:check_submission_file_type:93 - Checking submission file type
2021-02-14 16:58:08.548 | SUCCESS | main:check_submission_file_type:99 - Validated submission file type
2021-02-14 16:58:08.555 | SUCCESS | main:unzip_submission:88 - Extracted submission file to /src/submission.zip
2021-02-14 16:58:20.224 | INFO | main:remove_docker_image:238 - Image build failed, not removing old images

Thanks very much for your help!

Hi @michelle_chen and welcome to the forums! :partying_face:

You’re main error is this one:

ERROR: Could not find a version that satisfies the requirement scikit-learn== (from versions: 0.9, 0.10, 0.11, 0.12, 0.12.1, 0.13, 0.13.1, 0.14, 0.14.1, 0.15.0b1, 0.15.0b2, 0.15.0, 0.15.1, 0.15.2, 0.16b1, 0.16.0, 0.16.1, 0.17b1, 0.17, 0.17.1, 0.18, 0.18.1, 0.18.2, 0.19b2, 0.19.0, 0.19.1, 0.19.2, 0.20rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21rc2, 0.21.1, 0.21.2, 0.21.3, 0.22rc2.post1, 0.22rc3, 0.22, 0.22.1, 0.22.2, 0.22.2.post1, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.dev0, 0.24.0rc1, 0.24.0, 0.24.1)
ERROR: No matching distribution found for scikit-learn==

So in your case the issue is a tiny space inside of your ADDITIONAL_PACKAGES list. Right now you have this line:

scikit-learn== 0.24.10.22.2.post1

While it should be:

scikit-learn==0.24.10.22.2.post1

To be safe (if the specific version is not important for you) you could just have:

scikit-learn

And that should work :slight_smile:

But you’ll see once you fix that you will run into another error about saving and loading xgboost models. To fix that please follow the advice here.