Skip to content

"Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+" #8

@johnsonlwu

Description

@johnsonlwu

When running
docker build --build-arg PASSWORD=xxxxxx -t mxnet .
after following the exact instructions in README.md

building Tornado fails with:

RUN pip install jupyter

Collecting tornado>=4.0 (from ipykernel->jupyter)
Downloading https://files.pythonhosted.org/packages/cf/d1/3be271ae5eba9fb59df63c9891fdc7d8044b999e8ac145994cdbfd2ae66a/tornado-5.0.2.tar.gz (506kB)

I get

File "/tmp/pip-install-YWhmpS/tornado/setup.py", line 146, in
raise ImportError("Tornado requires an up-to-date SSL module. This means "

Tried updating python and pip per some suggestions out there:

pip install --upgrade pip
pip install backports.ssl_match_hostname==3.4.0.1

with no avail.

Will likely have to wait till Python versions and pip on these AWS images to settle down. Right now the instructions in readme.md verbatim will not work.

This seems to have fixed it for me:
$ diff Dockerfile Dockerfile-
10d9
< python3-dev
21c20
< RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py

RUN wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
49c48
< && python3 setup.py install


&& python setup.py install
61c60
< RUN python3 -c "from notebook.auth import passwd;print(passwd('${PASSWORD}') if '${PASSWORD}' != '' else 'sha1:c6bd96fb0824:6654e9eabfc54d0b3d0715ddf9561bed18e09b82')" > ${WORKSHOPDIR}/password_temp


RUN python -c "from notebook.auth import passwd;print(passwd('${PASSWORD}') if '${PASSWORD}' != '' else 'sha1:c6bd96fb0824:6654e9eabfc54d0b3d0715ddf9561bed18e09b82')" > ${WORKSHOPDIR}/password_temp

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