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
fixes issue #410 #411
fixes issue #410 #411
Conversation
@@ -9,6 +9,9 @@ RUN conda install requests-kerberos -y | |||
|
|||
USER $NB_USER | |||
|
|||
RUN pip install --upgrade pip | |||
RUN pip install --upgrade --ignore-installed setuptools |
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.
Is the --ignore-installed
needed?
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.
yes. it was required.
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.
Why?
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.
without it I got this error:
---> Running in a103e27aaeca
Collecting setuptools
Downloading setuptools-36.6.0-py2.py3-none-any.whl (481kB)
Installing collected packages: setuptools
Found existing installation: setuptools 23.0.0
Cannot remove entries from nonexistent file /opt/conda/lib/python3.5/site-packages/easy-install.pth
The command '/bin/sh -c pip install --upgrade setuptools' returned a non-zero code: 1
I googled until I found the --ignore-installed could get around it. See: ContinuumIO/anaconda-issues#542
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -yq --no-install-recommends --force-yes \ | |||
r-base-core && \ | |||
rm -rf /var/lib/apt/lists/* | |||
|
|||
RUN pip install --upgrade setuptools |
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.
Why not use ignore installed here too then? Should we update pip here as well?
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.
--ignore-installed was not needed here. I don't know why. My environment is OSX Sierra with Docker Community Edition Version 17.09.0-ce-mac35 (19611)
As for upgrading pip here.. this image is built via FROM gettyimages/spark:2.1.0-hadoop-2.7
which had pip up to date. Adding the upgrade will yield:
---> Running in 58351e04718b
Requirement already up-to-date: pip in /usr/local/lib/python3.4/dist-packages/pip-9.0.1-py3.4.egg
whereas the jupyter notebook is built via FROM jupyter/base-notebook:d0b2d159cc6c
and that pinned version is not up to date.
With this image built from an unpinned version of gettyimages, we may be able to defer the pip version to the base docker image.
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.
Hi @aggFTW, can you review again?
Done and thanks so much for the explanations! |
the build problem described in issue #410 was due to a very out of date setup tools. At one point in testing I got a warning about pip out of date so I upgrade that too...