Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

The library installed into the custom docker image is not available. #2166

@mikhail-khodorovskiy

Description

@mikhail-khodorovskiy

I used the example Docker file: https://github.com/googledatalab/datalab/blob/master/containers/datalab/Dockerfile-extended-example.in to install xlrd library.

My docker image build executes and the library is being added to the image:

Status: Downloaded newer image for gcr.io/cloud-datalab/datalab:latest
 ---> 8674bc940119
Step 2/5 : COPY requirements.txt .
 ---> c7a85b8b0391
Step 3/5 : RUN pip install -r requirements.txt
 ---> Running in c2cfcca4fd73
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting xlrd==1.2.0 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/b0/16/63576a1a001752e34bf8ea62e367997530dc553b689356b9879339cf45a4/xlrd-1.2.0-py2.py3-none-any.whl (103kB)
Installing collected packages: xlrd
Successfully installed xlrd-1.2.0
Removing intermediate container c2cfcca4fd73

However when I try to use the library in my notebook, it does not seem to be available using both Python 2 and 3 kernels:

import xlrd
ImportErrorTraceback (most recent call last)
<ipython-input-2-2743bb67f6dd> in <module>()
----> 1 import xlrd
ImportError: No module named xlrd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions