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

bug: ‘bentoml containerize’ got a problem #4686

Closed
dhj-git opened this issue Apr 23, 2024 · 0 comments
Closed

bug: ‘bentoml containerize’ got a problem #4686

dhj-git opened this issue Apr 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dhj-git
Copy link

dhj-git commented Apr 23, 2024

Describe the bug

24.19 Building wheels for collected packages: dlib
24.19 Building wheel for dlib (pyproject.toml): started
24.31 Building wheel for dlib (pyproject.toml): finished with status 'error'
24.32 error: subprocess-exited-with-error
24.32
24.32 × Building wheel for dlib (pyproject.toml) did not run successfully.
24.32 │ exit code: 1
24.32 ╰─> [6 lines of output]
24.32 running bdist_wheel
24.32 running build
24.32 running build_ext
24.32
24.32 ERROR: CMake must be installed to build dlib
24.32
24.32 [end of output]
24.32
24.32 note: This error originates from a subprocess, and is likely not a problem with pip.
24.32 ERROR: Failed building wheel for dlib
24.32 Failed to build dlib
24.32 ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects

Dockerfile:43

41 | COPY --chown=bentoml:bentoml ./env/python ./env/python/
42 | # install python packages with install.sh
43 | >>> RUN --mount=type=cache,target=/root/.cache/pip bash -euxo pipefail /home/bentoml/bento/env/python/install.sh
44 | COPY --chown=bentoml:bentoml . ./
45 |

ERROR: failed to solve: process "/bin/sh -c bash -euxo pipefail /home/bentoml/bento/env/python/install.sh" did not complete successfully: exit code: 1

Encountered exception while trying to building image: Command '['/usr/bin/docker', 'build', '--tag', 'face_service:ucn3uoabdoqj6aav', '--file', '/tmp/tmpwebtbby0fsTempFS/env/docker/Dockerfile', '/tmp/tmpwebtbby0fsTempFS/']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/dhj/miniconda3/lib/python3.11/site-packages/bentoml/_internal/container/init.py", line 231, in build
return builder.build(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dhj/miniconda3/lib/python3.11/site-packages/bentoml/_internal/container/base.py", line 190, in build
raise BentoMLException(str(e)) from None
bentoml.exceptions.BentoMLException: Command '['/usr/bin/docker', 'build', '--tag', 'face_service:ucn3uoabdoqj6aav', '--file', '/tmp/tmpwebtbby0fsTempFS/env/docker/Dockerfile', '/tmp/tmpwebtbby0fsTempFS/']' returned non-zero exit status 1.

To reproduce

No response

Expected behavior

No response

Environment

-"cmake==3.29.2"
- "dlib==19.24.4"
- "scikit-image==0.22.0"
- "face-recognition==1.3.0"
- "opencv-python==4.9.0.80"
- "numpy==1.26.2"
- "tensorflow==2.16.1"
- "mtcnn==0.1.1"
- "bentoml==1.2.11"
@dhj-git dhj-git added the bug Something isn't working label Apr 23, 2024
@dhj-git dhj-git closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant