Docker image build error for order-processor
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với Dockerfile ở dòng 33 và requirements.txt ở dòng 2, nơi việc cài đặt grpcio thất bại vì thiếu tệp thực thi c++. Tái hiện quá trình build image order-processor và kiểm tra các dependency build của container; được coi là hoàn tất khi Docker image build thành công với các requirements được liệt kê.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
When I'm trying to build the image for order-processor using its Dockerfile I've got this build error:
1.115 Collecting grpcio>=1.37.0 (from dapr->-r requirements.txt (line 2))
1.124 Downloading grpcio-1.56.2.tar.gz (24.3 MB)
3.013 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 24.3/24.3 MB 10.5 MB/s eta 0:00:00
3.953 Installing build dependencies: started
5.083 Installing build dependencies: finished with status 'done'
5.084 Getting requirements to build wheel: started
5.183 Getting requirements to build wheel: finished with status 'error'
5.185 error: subprocess-exited-with-error
5.185
5.185 × Getting requirements to build wheel did not run successfully.
5.185 │ exit code: 1
5.185 ╰─> [27 lines of output]
5.185 :43: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
5.185 Traceback (most recent call last):
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
5.185 main()
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
5.185 json_out['return_val'] = hook(**hook_input['kwargs'])
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/home/app/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/in_process/in_process.py", line 118, in get_requires_for_build_wheel
5.185 return hook(config_settings)
5.185 ^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
5.185 return self.get_build_requires(config_settings, requirements=['wheel'])
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in get_build_requires
5.185 self.run_setup()
5.185 File "/tmp/pip-build-env-lvpc9zo/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
5.185 self).run_setup(setup_script=setup_script)
5.185 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5.185 File "/tmp/pip-build-env-lvpc9zo/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
5.185 exec(code, locals())
5.185 File "", line 263, in
5.185 File "", line 210, in check_linker_need_libatomic
5.185 File "/usr/local/lib/python3.11/subprocess.py", line 1026, in init
5.185 self._execute_child(args, executable, preexec_fn, close_fds,
5.185 File "/usr/local/lib/python3.11/subprocess.py", line 1950, in _execute_child
5.185 raise child_exception_type(errno_num, err_msg, err_filename)
5.185 FileNotFoundError: [Errno 2] No such file or directory: 'c++'
5.185 [end of output]
5.185
5.185 note: This error originates from a subprocess, and is likely not a problem with pip.
5.186 error: subprocess-exited-with-error
5.186
5.186 × Getting requirements to build wheel did not run successfully.
5.186 │ exit code: 1
5.186 ╰─> See above for output.
5.186
5.186 note: This error originates from a subprocess, and is likely not a problem with pip.
5.192
5.192 [notice] A new release of pip is available: 23.1.2 -> 23.2.1
5.192 [notice] To update, run: pip install --upgrade pip
Dockerfile:33
31 | #RUN pip install wheel
32 | #RUN pip install grpcio
33 | >>> RUN pip install -r requirements.txt
34 |
35 | # define the port number the container should expose
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
For some reason, it is not possible to install grpcio package.
Any idea why?
Regis
- Ngôn ngữ chính
- Bicep
- Star
- 5
- Fork
- 10
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure-Samples/svc-invoke-dapr-python
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
Tất cả issue của Azure-Samples/svc-invoke-dapr-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
vllm-project/vllm-metal#822 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: chunk_span_bounds and _validated_chunk_spans reject Pydantic models ChunkSpan and AudioFileĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BasedHardware/omi#19047 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Screener: canary reports lose failure_subcode for every L2/L3 failure except the adjudicatorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ditto-assistant/ditto-subnet#2346 ·
Maintainer thường phản hồi trong vòng 1 ngày