Closed vanhouten closed 5 years ago
Hello,
Is my assumption about not detecting a display correct?
Correct, you need to emulate a virtual screen which on linux can be done using xvfb
.
Can I rectify this problem through certain package installations? Is there a way to discern which packages I would need?
I would recommend having a look at the submission docker file which you need to build for submitting your agent. It can also be used for training on your machine or in the cloud.
Don't forget to set docker_training=True
when creating your environment so that the environment can launch via xvfb
closing this issue due to inactivity
I am unable to get any of the example agents or the simulation environment to open on my machine and am not entirely sure why. I am running Ubuntu 16.04 and I have attempted to create a Dockerfile with all of the necessary components (per the Installation Instructions) as follows:
FROM tensorflow/tensorflow:1.12.3-gpu MAINTAINER Justin VanHouten () RUN add-apt-repository ppa:deadsnakes/ppa RUN apt-get update RUN apt-get install -y nano RUN apt-get install -y wget RUN DEBIAN_FRONTEND=noninteractive apt-get install -y xorg openbox RUN apt-get install -y git-core RUN apt-get install -y python3.6 WORKDIR .. RUN wget https://bootstrap.pypa.io/get-pip.py RUN python3.6 get-pip.py RUN pip install opencv-python RUN git clone https://github.com/beyretb/AnimalAI-Olympics.git WORKDIR AnimalAI-Olympics WORKDIR animalai RUN pip install -e . WORKDIR .. WORKDIR examples/animalai_train RUN pip install -e . WORKDIR .. WORKDIR .. RUN wget https://www.doc.ic.ac.uk/~bb1010/animalAI/env_linux_v1.0.0.zip RUN unzip ./env_linux_v1.0.0.zip -d env
If I then run a container based on this Dockerfile, cd into /examples and use the command "python3.6 [any agent python script] configs/[any premade YAML]" I get the error "The Unity environment took too long to respond...".
If I cd into /env and enter command "./AnimalAI.x86_64" it appears to run but nothing happens; I can Ctrl-Z out of it but it doesn't throw any errors.
When I open the log file, the only line says that "Desktop is 0 x 0 @ 0 Hz" which indicates to me that it isn't detecting a display. My questions are:
1) Is my assumption about not detecting a display correct? 2) Can I rectify this problem through certain package installations? Is there a way to discern which packages I would need?
Thank you in advance for any help or guidance you can provide; I've been over the Installation and Quick Start guides a dozen times and am not really sure what I'm missing.