Error building docker image
@laxmareddyp đang làm issue này rồi.
Từ ngày 18/4/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
I received the following error trying to build docker image (building on Fedora 41)
git clone https://github.com/tensorflow/models.git
docker build -f research/object_detection/dockerfiles/tf2/Dockerfile -t od .
1594.1 Building wheel for dm-tree (setup.py): started
1594.3 Building wheel for dm-tree (setup.py): finished with status 'error'
1594.3 ERROR: Command errored out with exit status 1:
1594.3 command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-7awv070v
1594.3 cwd: /tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/
1594.3 Complete output (55 lines):
1594.3 running bdist_wheel
1594.3 running build
1594.3 running build_py
1594.3 creating build
1594.3 creating build/lib.linux-x86_64-3.6
1594.3 creating build/lib.linux-x86_64-3.6/tree
1594.3 copying tree/__init__.py -> build/lib.linux-x86_64-3.6/tree
1594.3 copying tree/sequence.py -> build/lib.linux-x86_64-3.6/tree
1594.3 copying tree/tree_benchmark.py -> build/lib.linux-x86_64-3.6/tree
1594.3 copying tree/tree_test.py -> build/lib.linux-x86_64-3.6/tree
1594.3 running build_ext
1594.3 Traceback (most recent call last):
1594.3 File "/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py", line 77, in _check_build_environment
1594.3 subprocess.check_call(['cmake', '--version'])
1594.3 File "/usr/lib/python3.6/subprocess.py", line 306, in check_call
1594.3 retcode = call(*popenargs, **kwargs)
1594.3 File "/usr/lib/python3.6/subprocess.py", line 287, in call
1594.3 with Popen(*popenargs, **kwargs) as p:
1594.3 File "/usr/lib/python3.6/subprocess.py", line 729, in __init__
1594.3 restore_signals, start_new_session)
1594.3 File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child
1594.3 raise child_exception_type(errno_num, err_msg, err_filename)
1594.3 FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
1608.9 Traceback (most recent call last):
1608.9 File "<string>", line 1, in <module>
1608.9 File "/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py", line 155, in <module>
1608.9 keywords='tree nest flatten',
1608.9 File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 144, in setup
1608.9 return distutils.core.setup(**attrs)
1608.9 File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
1608.9 dist.run_commands()
1608.9 File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
1608.9 self.run_command(cmd)
1608.9 File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
1608.9 cmd_obj.run()
1608.9 File "/usr/local/lib/python3.6/dist-packages/setuptools/command/install.py", line 61, in run
1608.9 return orig.install.run(self)
1608.9 File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
1608.9 self.run_command('build')
1608.9 File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
1608.9 self.distribution.run_command(command)
1608.9 File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
1608.9 cmd_obj.run()
1608.9 File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
1608.9 self.run_command(cmd_name)
1608.9 File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
1608.9 self.distribution.run_command(command)
1608.9 File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
1608.9 cmd_obj.run()
1608.9 File "/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py", line 70, in run
1608.9 self._check_build_environment()
1608.9 File "/tmp/pip-install-mv6ae7oq/dm-tree_8adbc9ddfb4743cc85c9797ca7a2ca57/setup.py", line 82, in _check_build_environment
1608.9 ) from e
1608.9 RuntimeError: CMake must be installed to build the following extensions: _tree
- Ngôn ngữ chính
- Python
- Star
- 77.6k
- Fork
- 44.8k
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 tensorflow/models
-
Verify evals on Papers with CodeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
tensorflow/models#13653 ·
-
object_detection_tutorial.ipynb pretrained model "resnet50 imagenet"Có thể làm lại được @laxmareddyp đã nhận 202 ngày trước và không có pull request nào đang mở. Đang mởtype:support
tensorflow/models#13634 · 2 bình luận · 1 reaction · 1 người được giao ·
-
Tag version compatible with Tensorflow 2.20Có thể làm lại được @bharatjetti đã nhận 277 ngày trước và không có pull request nào đang mở. Đang mởmodels:official type:bug
tensorflow/models#13607 · 1 bình luận · 1 người được giao ·
-
models:research type:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
tensorflow/models#13600 ·
-
Installation Issues on Python 3.13Có thể làm lại được @bharatjetti đã nhận 246 ngày trước và không có pull request nào đang mở. Đang mởmodels:official type:bug
tensorflow/models#13587 · 9 bình luận · 1 người được giao ·
Tất cả issue của tensorflow/models
Issue tương tự
-
cli good first issue help wanted python up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
andrewsiah/agentswarm-data-tasks#36 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug drawing-tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
cofade/open-garden-planner#827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Methodology pageĐang mởdocumentation site texts
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Krasnopjorovs/temet#66 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày