Skip to content
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

GPU install failing at tornado module #84

Open
hlfshell opened this issue Mar 13, 2018 · 11 comments
Open

GPU install failing at tornado module #84

hlfshell opened this issue Mar 13, 2018 · 11 comments

Comments

@hlfshell
Copy link

While running the command
docker build -t floydhub/dl-docker:gpu -f Dockerfile.gpu . within the repos, it fails during the installation of the tornado module in python. Below is the relevant stack trace.

Collecting tornado>=4.0 (from ipykernel)
  Downloading tornado-5.0.tar.gz (504kB)
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-dS1ilp/tornado/setup.py", line 146, in <module>
        raise ImportError("Tornado requires an up-to-date SSL module. This means "
    ImportError: Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+ (although some distributions have backported the necessary changes to older versions).
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dS1ilp/tornado/
The command '/bin/sh -c pip --no-cache-dir install --upgrade ipython && 	pip --no-cache-dir install 		Cython 		ipykernel 		jupyter 	path.py 		Pillow 		pygments 		six 		sphinx 		wheel 		zmq 		&& 	python -m ipykernel.kernelspec' returned a non-zero code: 1

Unsure where to go from here. Thanks!

@wardheij
Copy link

I encountered the same problem.

@ghost
Copy link

ghost commented Mar 17, 2018

same :(

@KSchopmeyer
Copy link

KSchopmeyer commented Mar 19, 2018

Same issue with pywbem pip package. The python2 code in this package uses M2Crypto as ssl package for historical reasons and python 2.7.6 is still the required system python package for at least Ubuntu 14.04.

@babazaroni
Copy link

Same problem for me. Joining this thread to monitor for solution.

@tristankpka
Copy link

Same problem, joining the thread.

@ptiagi
Copy link

ptiagi commented Mar 27, 2018

I just resolved this issue by upgrading my python 2.7 to 2.7.10.
Try running the following commands from you virtual environment:
pyenv install 2.7.10
pyenv global 2.7.10

@opencoca
Copy link

@ptiagi That's a great fix if the issue was inside a virtual environment. would need to install virtualenv and along with it pyenv. As things are now an other fix would be to grab python from https://python.org and install it.

Popping the following into my Dockerfile.gpu overcame the up-to-date SSL module issue.

ARG PYTHON_BASEDEPS="build-essential python-pip"
ARG PYTHON_BUILDDEPS="libbz2-dev \
   libc6-dev \
   libgdbm-dev \
   libncursesw5-dev \
   libreadline-gplv2-dev \
   libsqlite3-dev \
   libssl-dev \
   tk-dev"


ARG PYTHON_TARFILE="Python-2.7.9.tgz"
ARG PYTHON_TARHOST="https://www.python.org/ftp/python/2.7.9"
ARG PYTHON_SRCDIR="Python-2.7.9"

RUN apt-get update
RUN apt-get install -y ${PYTHON_BASEDEPS} ${PYTHON_BUILDDEPS}

RUN wget "${PYTHON_TARHOST}/${PYTHON_TARFILE}"
RUN tar xvf ${PYTHON_TARFILE}
 
RUN cd ${PYTHON_SRCDIR} && \
   ./configure && \
   make && \
   make install

@opencoca
Copy link

For a working build see opencoca@de9050f

@abdallah197
Copy link

facing the same problem

@nwatab
Copy link

nwatab commented Sep 10, 2018

Same problem after resolving #86 on Ubuntu 16, but #84 (comment) worked.

@OneCodeMonkey
Copy link

facing the same problem as well. Tried several times still not solved :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants