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

Unable to build Dockerfile #34

Open
JamesRobotics opened this issue Aug 22, 2023 · 0 comments
Open

Unable to build Dockerfile #34

JamesRobotics opened this issue Aug 22, 2023 · 0 comments

Comments

@JamesRobotics
Copy link

Hi, I have been trying to build the Dockerfile but without success.
While performing command docker build -t test1 . terminal outputs this:

#0 177.1 Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
#0 177.4 WARNING: The candidate selected for download or install is a yanked version: 'protobuf' candidate (version 4.21.0 at https://files.pythonhosted.org/packages/27/82/986065ef305c0989c99d8ef3f29e58a03fac6e64bb2c36ffe64500cc6955/protobuf-4.21.0-py3-none-any.whl#sha256=4e78116673ba04e01e563f6a9cca2c72db0be8a3e1629094816357e81cc39d36 (from https://pypi.org/simple/protobuf/))
#0 177.4 Reason for being yanked: Required python version not configured correctly (protocolbuffers/protobuf#10076)
#0 177.4 Using legacy 'setup.py install' for screeninfo, since package 'wheel' is not installed.
#0 177.4 Using legacy 'setup.py install' for pybullet, since package 'wheel' is not installed.
#0 177.4 Using legacy 'setup.py install' for termcolor, since package 'wheel' is not installed.
#0 177.4 Using legacy 'setup.py install' for dm-tree, since package 'wheel' is not installed.
#0 177.4 Building wheels for collected packages: gym
#0 177.4 Building wheel for gym (pyproject.toml): started
#0 177.8 Building wheel for gym (pyproject.toml): finished with status 'done'
#0 177.8 Created wheel for gym: filename=gym-0.26.2-py3-none-any.whl size=827647 sha256=e9de058b37e5f7a970af3fb2188fe0b78380c763b4c0e1d520a73bbcc48d01ff
#0 177.8 Stored in directory: /home/ubuntu/.cache/pip/wheels/35/54/f1/608768a57e3b4c6d0c8dd7bc32f039903b0370712909ba5f99
#0 177.8 Successfully built gym
#0 178.6 Installing collected packages: zipp, typing-extensions, six, urllib3, setuptools, python-dateutil, pyrsistent, pyparsing, platformdirs, pillow, numpy, kiwisolver, importlib-resources, importlib-metadata, idna, frozenlist, filelock, distlib, decorator, cycler, charset-normalizer, certifi, attrs, wheel, werkzeug, virtualenv, tifffile, scipy, requests, pyyaml, PyWavelets, pytz, pygments, protobuf, packaging, networkx, msgpack, matplotlib, markdown, jsonschema, imageio, h5py, gymnasium-notices, grpcio, commonmark, cloudpickle, click, aiosignal, absl-py, wrapt, typer, torch, termcolor, tensorflow-estimator, tensorboardX, tensorboard, tabulate, scikit-image, rich, ray, pandas, lz4, keras-preprocessing, keras-applications, gymnasium, gym-notices, google-pasta, gast, dm-tree, astor, trimesh, tensorflow-probability, tensorflow, smplx, screeninfo, pybullet, numpngw, keras, gym, assistive-gym
#0 178.7 Attempting uninstall: setuptools
#0 178.7 Found existing installation: setuptools 39.0.1
#0 178.7 Uninstalling setuptools-39.0.1:
#0 178.8 Successfully uninstalled setuptools-39.0.1
#0 196.6 Running setup.py install for termcolor: started
#0 196.8 Running setup.py install for termcolor: finished with status 'done'
#0 202.5 Running setup.py install for dm-tree: started
#0 202.7 Running setup.py install for dm-tree: finished with status 'error'
#0 202.7 ERROR: Command errored out with exit status 1:
#0 202.7 command: /home/ubuntu/.pyenv/versions/3.6.5/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py'"'"'; file='"'"'/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/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'"'"'))' install --record /tmp/pip-record-box_b883/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.pyenv/versions/3.6.5/include/python3.6m/dm-tree
#0 202.7 cwd: /tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/
#0 202.7 Complete output (59 lines):
#0 202.7 running install
#0 202.7 /home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
#0 202.7 setuptools.SetuptoolsDeprecationWarning,
#0 202.7 running build
#0 202.7 running build_py
#0 202.7 creating build
#0 202.7 creating build/lib.linux-x86_64-3.6
#0 202.7 creating build/lib.linux-x86_64-3.6/tree
#0 202.7 copying tree/tree_test.py -> build/lib.linux-x86_64-3.6/tree
#0 202.7 copying tree/tree_benchmark.py -> build/lib.linux-x86_64-3.6/tree
#0 202.7 copying tree/init.py -> build/lib.linux-x86_64-3.6/tree
#0 202.7 copying tree/sequence.py -> build/lib.linux-x86_64-3.6/tree
#0 202.7 running build_ext
#0 202.7 Traceback (most recent call last):
#0 202.7 File "/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py", line 77, in _check_build_environment
#0 202.7 subprocess.check_call(['cmake', '--version'])
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 286, in check_call
#0 202.7 retcode = call(*popenargs, **kwargs)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 267, in call
#0 202.7 with Popen(*popenargs, **kwargs) as p:
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 709, in init
#0 202.7 restore_signals, start_new_session)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 1344, in _execute_child
#0 202.7 raise child_exception_type(errno_num, err_msg, err_filename)
#0 202.7 FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
#0 202.7
#0 202.7 The above exception was the direct cause of the following exception:
#0 202.7
#0 202.7 Traceback (most recent call last):
#0 202.7 File "", line 1, in
#0 202.7 File "/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py", line 155, in
#0 202.7 keywords='tree nest flatten',
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/site-packages/setuptools/init.py", line 153, in setup
#0 202.7 return distutils.core.setup(**attrs)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/core.py", line 148, in setup
#0 202.7 dist.run_commands()
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/dist.py", line 955, in run_commands
#0 202.7 self.run_command(cmd)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/dist.py", line 974, in run_command
#0 202.7 cmd_obj.run()
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/site-packages/setuptools/command/install.py", line 68, in run
#0 202.7 return orig.install.run(self)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/command/install.py", line 545, in run
#0 202.7 self.run_command('build')
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/cmd.py", line 313, in run_command
#0 202.7 self.distribution.run_command(command)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/dist.py", line 974, in run_command
#0 202.7 cmd_obj.run()
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/command/build.py", line 135, in run
#0 202.7 self.run_command(cmd_name)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/cmd.py", line 313, in run_command
#0 202.7 self.distribution.run_command(command)
#0 202.7 File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/distutils/dist.py", line 974, in run_command
#0 202.7 cmd_obj.run()
#0 202.7 File "/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py", line 70, in run
#0 202.7 self._check_build_environment()
#0 202.7 File "/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py", line 82, in _check_build_environment
#0 202.7 ) from e
#0 202.7 RuntimeError: CMake must be installed to build the following extensions: _tree
#0 202.7 ----------------------------------------
#0 202.7 ERROR: Command errored out with exit status 1: /home/ubuntu/.pyenv/versions/3.6.5/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/setup.py'"'"'; file='"'"'/tmp/pip-install-zj4qmzy8/dm-tree_561d46f26e844af9adc7923cd590fd1f/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'"'"'))' install --record /tmp/pip-record-box_b883/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/.pyenv/versions/3.6.5/include/python3.6m/dm-tree Check the logs for full command output.

Dockerfile:18

16 | RUN pip3 install screeninfo
17 | # RUN pip3 install git+https://github.com/Zackory/bullet3.git
18 | >>> RUN git clone https://github.com/Healthcare-Robotics/assistive-gym.git && cd assistive-gym && pip3 install -e .
19 | RUN pip3 install git+https://github.com/Zackory/pytorch-a2c-ppo-acktr --no-cache-dir
20 | RUN pip3 install git+https://github.com/openai/baselines.git

ERROR: failed to solve: process "/bin/sh -c git clone https://github.com/Healthcare-Robotics/assistive-gym.git && cd assistive-gym && pip3 install -e ." did not complete successfully: exit code: 1

I tried various solutions but none of them work. Could you know maybe what could be the case and what am I doing wrong? Thank you in advance.

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