offworld-gym icon indicating copy to clipboard operation
offworld-gym copied to clipboard

CalledProcessError Command '['/bin/bash', '-c', "docker run --name 'offworld-gym94d36929c7'

Open asawaswapnil opened this issue 5 years ago • 0 comments

I am trying to run offworld.ai gym sim expts on colab jupyter notebook as follows:

expl_env = gym.make('OffWorldDockerMonolithDiscreteSim-v0', channel_type=Channels.DEPTH_ONLY)

I get the error:

The bash command "xhost local:" failed. Installing 'xhost' may be required for OffWorldDockerizedEnv to render properly. Further issues may be caused by this. CalledProcessError Traceback (most recent call last) in () ----> 1 expl_env = gym.make('OffWorldDockerMonolithDiscreteSim-v0', channel_type=Channels.DEPTH_ONLY)

7 frames /usr/lib/python3.6/subprocess.py in run(input, timeout, check, *popenargs, **kwargs) 436 if check and retcode: 437 raise CalledProcessError(retcode, process.args, --> 438 output=stdout, stderr=stderr) 439 return CompletedProcess(process.args, retcode, stdout, stderr) 440

CalledProcessError: Command '['/bin/bash', '-c', "docker run --name 'offworld-gyma52dbbb58e' -it -d --rm -e OFFWORLD_GYM_GRPC_SERVER_PORT=7676 -e OFFWORLD_ENV_TYPE=OffWorldMonolithDiscreteEnv -e OFFWORLD_ENV_CHANNEL_TYPE=DEPTH_ONLY -e OFFWORLD_ENV_RANDOM_INIT=TRUE -p 7676/tcp -p 11345/tcp -p 8080/tcp offworldai/offworld-gym /offworld-gym/offworld_gym/envs/gazebo_docker/docker_entrypoint.sh"]' returned non-zero exit status 127.

Any suggestions on the solving this problem would be great! Is it possible to use offworldai gym on colab as I need xhost? I am using colab as it has a gpu I can use for the task. How long would CPU take?

asawaswapnil avatar Sep 27 '20 01:09 asawaswapnil