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

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

Open
asawaswapnil opened this issue Sep 27, 2020 · 0 comments

Comments

@asawaswapnil
Copy link

asawaswapnil commented Sep 27, 2020

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?

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