{"action":"closed","issue":{"url":"https://api.github.com/repos/researchapps/sherlock/issues/2","repository_url":"https://api.github.com/repos/researchapps/sherlock","labels_url":"https://api.github.com/repos/researchapps/sherlock/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/researchapps/sherlock/issues/2/comments","events_url":"https://api.github.com/repos/researchapps/sherlock/issues/2/events","html_url":"https://github.com/researchapps/sherlock/issues/2","id":350233655,"node_id":"MDU6SXNzdWUzNTAyMzM2NTU=","number":2,"title":"Dockerfile for pytorch in python2 won't build","user":{"login":"dbdean","id":12725310,"node_id":"MDQ6VXNlcjEyNzI1MzEw","avatar_url":"https://avatars1.githubusercontent.com/u/12725310?v=4","gravatar_id":"","url":"https://api.github.com/users/dbdean","html_url":"https://github.com/dbdean","followers_url":"https://api.github.com/users/dbdean/followers","following_url":"https://api.github.com/users/dbdean/following{/other_user}","gists_url":"https://api.github.com/users/dbdean/gists{/gist_id}","starred_url":"https://api.github.com/users/dbdean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbdean/subscriptions","organizations_url":"https://api.github.com/users/dbdean/orgs","repos_url":"https://api.github.com/users/dbdean/repos","events_url":"https://api.github.com/users/dbdean/events{/privacy}","received_events_url":"https://api.github.com/users/dbdean/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-13T23:53:33Z","updated_at":"2018-08-14T16:05:58Z","closed_at":"2018-08-14T16:05:58Z","author_association":"NONE","body":"Hi, thanks for the help in getting pytorch running in python 2.7 using your Dockerfile at https://github.com/researchapps/sherlock/blob/master/pytorch-dev/Dockerfile.py2. I did have to make some changes to get it to work however:\r\n\r\n```--- Dockerfile.py2      2018-08-14 09:40:19.538977751 +1000\r\n+++ Dockerfile.new      2018-08-14 09:44:08.542990180 +1000\r\n@@ -20,17 +20,19 @@\r\n      /opt/conda/bin/conda config --add channels conda-forge && \\\r\n      /opt/conda/bin/conda install -y numpy pyyaml scipy ipython mkl && \\\r\n      /opt/conda/bin/conda install -y matplotlib scikit-learn scikit-image && \\\r\n+     /opt/conda/bin/conda install -y typing && \\\r\n      /opt/conda/bin/conda install -c intel mkl-include && \\\r\n      /opt/conda/bin/conda install -c pytorch magma-cuda90 && \\\r\n      /opt/conda/bin/conda clean -ya\r\n-RUN /opt/conda/bin/conda update -y base conda\r\n+RUN /opt/conda/bin/conda update -y conda\r\n ENV PATH /opt/conda/bin:$PATH\r\n # This must be done before pip so that requirements.txt is available\r\n RUN git clone https://github.com/pytorch/pytorch /opt/pytorch && \\   \r\n     cd /opt/pytorch && \\\r\n     git submodule update --init\r\n RUN pip install --upgrade pip\r\n-RUN TORCH_CUDA_ARCH_LIST=\"3.5 5.2 6.0 6.1 7.0+PTX\" TORCH_NVCC_FLAGS=\"-Xfatbin -compress-all\" \\\r\n+RUN cd /opt/pytorch && \\\r\n+    TORCH_CUDA_ARCH_LIST=\"3.5 5.2 6.0 6.1 7.0+PTX\" TORCH_NVCC_FLAGS=\"-Xfatbin -compress-all\" \\\r\n     CMAKE_PREFIX_PATH=\"$(dirname $(which conda))/../\" \\\r\n     pip install -v .\r\n RUN git clone https://github.com/pytorch/vision.git && cd vision && pip install -v .\r\n```\r\nI hope this is useful if this problem is reproducible for other people."}}
{"actor":{"display_login":"vsoch"}}