tensorflow / tensorflow/models

Error building docker image

Open
#13,567 4 comments 0 reactions 1 assignee View on GitHub

@laxmareddyp is already working on this.

Since Apr 18, 2025.

type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.