aws-samples / aws-samples/ecs-deep-learning-workshop

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

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
195
Forks
74
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.