Skip to content

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

@asawaswapnil

Description

@asawaswapnil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions