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

Docker container is breaking due to dependency issues #57

Open
jagadeesh-rajarajan-ss opened this issue Feb 10, 2025 · 0 comments
Open

Comments

@jagadeesh-rajarajan-ss
Copy link

❯ docker build -t paraphrase .
[+] Building 43.2s (9/11) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 232B 0.0s
=> [internal] load metadata for docker.io/tensorflow/tensorflow:latest 2.3s
=> [auth] tensorflow/tensorflow:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [1/6] FROM docker.io/tensorflow/tensorflow:latest@sha256:f3be5db24f080b3b228a23eb24f586058b3bec445d81500f95167c70e5473d4e 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 5.91kB 0.0s
=> CACHED [2/6] RUN apt-get update 0.0s
=> CACHED [3/6] COPY ./requirements.txt /tmp/requirements.txt 0.0s
=> ERROR [4/6] RUN pip install -r /tmp/requirements.txt 40.9s

[4/6] RUN pip install -r /tmp/requirements.txt:
0.902 Collecting seaborn==0.10.1 (from -r /tmp/requirements.txt (line 1))
1.152 Downloading seaborn-0.10.1-py3-none-any.whl.metadata (2.3 kB)
1.232 Collecting nltk==3.9 (from -r /tmp/requirements.txt (line 2))
1.262 Downloading nltk-3.9-py3-none-any.whl.metadata (2.9 kB)
1.646 Collecting numpy==1.22.0 (from -r /tmp/requirements.txt (line 3))
1.674 Downloading numpy-1.22.0.zip (11.3 MB)
14.96 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 838.1 kB/s eta 0:00:00
15.19 Installing build dependencies: started
17.99 Installing build dependencies: finished with status 'done'
18.00 Getting requirements to build wheel: started
18.35 Getting requirements to build wheel: finished with status 'done'
18.35 Preparing metadata (pyproject.toml): started
18.66 Preparing metadata (pyproject.toml): finished with status 'done'
18.76 Collecting torch==2.2.0 (from -r /tmp/requirements.txt (line 4))
18.79 Downloading torch-2.2.0-cp311-cp311-manylinux1_x86_64.whl.metadata (25 kB)
18.89 Collecting Flask==2.3.2 (from -r /tmp/requirements.txt (line 5))
18.92 Downloading Flask-2.3.2-py3-none-any.whl.metadata (3.7 kB)
19.03 Collecting transformers==4.38.0 (from -r /tmp/requirements.txt (line 6))
19.06 Downloading transformers-4.38.0-py3-none-any.whl.metadata (131 kB)
19.55 Collecting pandas==1.0.5 (from -r /tmp/requirements.txt (line 7))
19.58 Downloading pandas-1.0.5.tar.gz (5.0 MB)
29.10 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.0/5.0 MB 512.8 kB/s eta 0:00:00
29.32 Installing build dependencies: started
40.57 Installing build dependencies: finished with status 'error'
40.58 error: subprocess-exited-with-error
40.58
40.58 × pip subprocess to install build dependencies did not run successfully.
40.58 │ exit code: 1
40.58 ╰─> [70 lines of output]
40.58 Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
40.58 Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
40.58 Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
40.58 Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
40.58 Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment
40.58 Collecting setuptools
40.58 Downloading setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
40.58 Collecting wheel
40.58 Downloading wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
40.58 Collecting Cython>=0.29.13
40.58 Downloading Cython-3.0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
40.58 Collecting numpy==1.17.3
40.58 Downloading numpy-1.17.3.zip (6.4 MB)
40.58 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 1.7 MB/s eta 0:00:00
40.58 Preparing metadata (setup.py): started
40.58 Preparing metadata (setup.py): finished with status 'done'
40.58 Downloading setuptools-75.8.0-py3-none-any.whl (1.2 MB)
40.58 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 739.9 kB/s eta 0:00:00
40.58 Downloading wheel-0.45.1-py3-none-any.whl (72 kB)
40.58 Downloading Cython-3.0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
40.58 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 989.4 kB/s eta 0:00:00
40.58 Building wheels for collected packages: numpy
40.58 Building wheel for numpy (setup.py): started
40.58 Building wheel for numpy (setup.py): finished with status 'error'
40.58 error: subprocess-exited-with-error
40.58
40.58 × python setup.py bdist_wheel did not run successfully.
40.58 │ exit code: 1
40.58 ╰─> [15 lines of output]
40.58 Running from numpy source directory.
40.58 Traceback (most recent call last):
40.58 File "", line 2, in
40.58 File "", line 34, in
40.58 File "/tmp/pip-install-ag5bdz5p/numpy_15c2b249d2304bbc9ddc499fe7caa202/setup.py", line 443, in
40.58 setup_package()
40.58 File "/tmp/pip-install-ag5bdz5p/numpy_15c2b249d2304bbc9ddc499fe7caa202/setup.py", line 422, in setup_package
40.58 from numpy.distutils.core import setup
40.58 File "/tmp/pip-install-ag5bdz5p/numpy_15c2b249d2304bbc9ddc499fe7caa202/numpy/distutils/core.py", line 26, in
40.58 from numpy.distutils.command import config, config_compiler,
40.58 File "/tmp/pip-install-ag5bdz5p/numpy_15c2b249d2304bbc9ddc499fe7caa202/numpy/distutils/command/config.py", line 20, in
40.58 from numpy.distutils.mingw32ccompiler import generate_manifest
40.58 File "/tmp/pip-install-ag5bdz5p/numpy_15c2b249d2304bbc9ddc499fe7caa202/numpy/distutils/mingw32ccompiler.py", line 34, in
40.58 from distutils.msvccompiler import get_build_version as get_build_msvc_version
40.58 ModuleNotFoundError: No module named 'distutils.msvccompiler'
40.58 [end of output]
40.58
40.58 note: This error originates from a subprocess, and is likely not a problem with pip.
40.58 ERROR: Failed building wheel for numpy
40.58 Running setup.py clean for numpy
40.58 error: subprocess-exited-with-error
40.58
40.58 × python setup.py clean did not run successfully.
40.58 │ exit code: 1
40.58 ╰─> [10 lines of output]
40.58 Running from numpy source directory.
40.58
40.58 setup.py clean is not supported, use one of the following instead:
40.58
40.58 - git clean -xdf (cleans all files)
40.58 - git clean -Xdf (cleans all versioned files, doesn't touch
40.58 files that aren't checked into the git repo)
40.58
40.58 Add --force to your command to use it anyway if you must (unsupported).
40.58
40.58 [end of output]
40.58
40.58 note: This error originates from a subprocess, and is likely not a problem with pip.
40.58 ERROR: Failed cleaning build dir for numpy
40.58 Failed to build numpy
40.58 ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (numpy)
40.58 [end of output]
40.58
40.58 note: This error originates from a subprocess, and is likely not a problem with pip.
40.72
40.72 [notice] A new release of pip is available: 24.2 -> 25.0.1
40.72 [notice] To update, run: python3 -m pip install --upgrade pip
40.72 error: subprocess-exited-with-error
40.72
40.72 × pip subprocess to install build dependencies did not run successfully.
40.72 │ exit code: 1
40.72 ╰─> See above for output.
40.72
40.72 note: This error originates from a subprocess, and is likely not a problem with pip.


2 warnings found (use docker --debug to expand):

  • InvalidBaseImagePlatform: Base image tensorflow/tensorflow was pulled with platform "linux/amd64", expected "linux/arm64" for current build (line 1)
  • WorkdirRelativePath: Relative workdir "./Server" can have unexpected results if the base image changes (line 10)
    Dockerfile:6

4 |
5 | COPY ./requirements.txt /tmp/requirements.txt
6 | >>> RUN pip install -r /tmp/requirements.txt
7 |
8 | COPY . .

ERROR: failed to solve: process "/bin/sh -c pip install -r /tmp/requirements.txt" did not complete successfully: exit code: 1

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

1 participant