Guest User

Untitled

a guest
Jul 18th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. FROM python:3.6-alpine
  2. COPY . /app
  3. WORKDIR /app
  4.  
  5. RUN apk --update add --no-cache
  6. lapack-dev
  7. gcc
  8. freetype-dev
  9.  
  10. # Install dependencies
  11. RUN apk add --no-cache --virtual .build-deps
  12. gfortran
  13. musl-dev
  14. g++
  15.  
  16. RUN pip3 install -r requirements.txt
  17.  
  18. RUN python3 setup.py install
  19.  
  20. RUN apk del .build-deps
  21.  
  22. ENTRYPOINT python3 testapp.py
  23.  
  24. numpy==1.13.3
  25. Cython==0.28.2
  26. nibabel==2.2.1
  27. scipy==1.0.0
  28.  
  29. Collecting numpy==1.13.3 (from -r requirements.txt (line 1))
  30. Downloading https://files.pythonhosted.org/packages/bf/2d/005e45738ab07a26e621c9c12dc97381f372e06678adf7dc3356a69b5960/numpy-1.13.3.zip (5.0MB)
  31. Collecting Cython==0.28.2 (from -r requirements.txt (line 2))
  32. Downloading https://files.pythonhosted.org/packages/79/9d/dea8c5181cdb77d32e20a44dd5346b0e4bac23c4858f2f66ad64bbcf4de8/Cython-0.28.2.tar.gz (1.9MB)
  33. Collecting nibabel==2.2.1 (from -r requirements.txt (line 3))
  34. Downloading https://files.pythonhosted.org/packages/d7/de/1d96fd0b118c9047bf35f02090db8ef8fd3927dfce635f09a6f7d5b572e6/nibabel-2.2.1.zip (4.2MB)
  35. Collecting scipy==1.0.0 (from -r requirements.txt (line 4))
  36. Downloading https://files.pythonhosted.org/packages/d0/73/76fc6ea21818eed0de8dd38e1e9586725578864169a2b31acdeffb9131c8/scipy-1.0.0.tar.gz (15.2MB)
  37. Collecting six>=1.3 (from nibabel==2.2.1->-r requirements.txt (line 3))
  38. Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  39. Building wheels for collected packages: numpy, Cython, nibabel, scipy
  40. Running setup.py bdist_wheel for numpy: started
  41. Running setup.py bdist_wheel for numpy: still running...
  42. Running setup.py bdist_wheel for numpy: still running...
  43. Running setup.py bdist_wheel for numpy: still running...
  44. Running setup.py bdist_wheel for numpy: finished with status 'done'
  45. Stored in directory: /root/.cache/pip/wheels/b6/10/65/189b772e73b4505109d5a1e6671b07e65797023718777295e0
  46. Running setup.py bdist_wheel for Cython: started
  47. Running setup.py bdist_wheel for Cython: still running...
  48. Running setup.py bdist_wheel for Cython: still running...
  49. Running setup.py bdist_wheel for Cython: still running...
  50. Running setup.py bdist_wheel for Cython: finished with status 'done'
  51. Stored in directory: /root/.cache/pip/wheels/6f/24/5d/def09ad0aed8ba26186f2a38070906f70ab4b2287bf64d4414
  52. Running setup.py bdist_wheel for nibabel: started
  53. Running setup.py bdist_wheel for nibabel: finished with status 'done'
  54. Stored in directory: /root/.cache/pip/wheels/46/50/8d/bcb0b8f7c030da5bac1752fbe9cc375cbf5725fa93ba79ad84
  55. Running setup.py bdist_wheel for scipy: started
  56. Running setup.py bdist_wheel for scipy: finished with status 'error'
  57. Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-boosbyfg/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-cczhwdqj --python-tag cp36:
  58. Traceback (most recent call last):
  59. File "<string>", line 1, in <module>
  60. File "/tmp/pip-install-boosbyfg/scipy/setup.py", line 418, in <module>
  61. setup_package()
  62. File "/tmp/pip-install-boosbyfg/scipy/setup.py", line 398, in setup_package
  63. from numpy.distutils.core import setup
  64. ModuleNotFoundError: No module named 'numpy'
Add Comment
Please, Sign In to add comment