real-stanford / flingbot

[CoRL 2021 Best System Paper] This repository contains code for training and evaluating FlingBot in both simulation and real-world settings on a dual-UR5 robot arm setup for Ubuntu 18.04
https://flingbot.cs.columbia.edu/
106 stars 25 forks source link

conda env and openexr install error #1

Open etaoxing opened 2 years ago

etaoxing commented 2 years ago

When I tried to create the conda env inside the flingbot Docker instance, I got this error:

    Running setup.py install for openexr: started
    Running setup.py install for openexr: finished with status 'error'

Pip subprocess error:
  ERROR: Command errored out with exit status 1:
   command: /root/miniconda3/envs/flingbot/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/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-aizbv_dq
       cwd: /tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/
  Complete output (16 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  copying Imath.py -> build/lib.linux-x86_64-3.6
  running build_ext
  building 'OpenEXR' extension
  creating build/temp.linux-x86_64-3.6
  gcc -pthread -B /root/miniconda3/envs/flingbot/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/root/miniconda3/envs/flingbot/include/python3.6m -c OpenEXR.cpp -o build/temp.linux-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.2"
  cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  OpenEXR.cpp:36:10: fatal error: ImathBox.h: No such file or directory
   #include <ImathBox.h>
            ^~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for openexr
    ERROR: Command errored out with exit status 1:
     command: /root/miniconda3/envs/flingbot/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/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-a91hs22t/install-record.txt --single-version-externally-managed --compile --install-headers /root/miniconda3/envs/flingbot/include/python3.6m/openexr
         cwd: /tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/
    Complete output (16 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    copying Imath.py -> build/lib.linux-x86_64-3.6
    running build_ext
    building 'OpenEXR' extension
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -B /root/miniconda3/envs/flingbot/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/OpenEXR -I/usr/local/include/OpenEXR -I/opt/local/include/OpenEXR -I/root/miniconda3/envs/flingbot/include/python3.6m -c OpenEXR.cpp -o build/temp.linux-x86_64-3.6/OpenEXR.o -g -DVERSION="1.3.2"
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
    OpenEXR.cpp:36:10: fatal error: ImathBox.h: No such file or directory
     #include <ImathBox.h>
              ^~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /root/miniconda3/envs/flingbot/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zlilc69r/openexr_9a1d5c6112364fe5bb20b4c95e63c15e/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-a91hs22t/install-record.txt --single-version-externally-managed --compile --install-headers /root/miniconda3/envs/flingbot/include/python3.6m/openexr Check the logs for full command output.

failed

CondaEnvException: Pip failed

Installing the "libopenexr-dev" package inside the Docker instance as suggested here, and then creating the conda environment fixes this issue.

Barbany commented 2 years ago

I solved this by running conda install -c conda-forge openexr-python

zcswdt commented 9 months ago

conda install -c conda-forge openexr-python

Hello, have you completed training on this code?