[Announcement] minerl-v0.1.11 released!

#1

Hey everyone! There is a new version of minerl available (v0.1.11 ) out! We’ve fixed tons of issues with the minerl gym environments (there was a nasty race condition :\ that we’ve eliminated), and added env.render (thanks to Sohojoe). We are now busy working on an update to fix some of the issues with the dataset (feel free to ping @imushroom1 or @MineRL ) for updates on this. Make sure to upgrade your package:

pip3 install --upgrade minerl

Thank you all again for helping us find all of these bugs!

#2

Thank you! However, when I try to install it I get the following error:

Building wheels for collected packages: minerl, gym, psutil, future
  Building wheel for minerl (setup.py): started
  Building wheel for minerl (setup.py): finished with status 'done'
  Stored in directory: /home/user/.cache/pip/wheels/e3/cf/42/d67a262859ac9bcc3cb618e7166186abae1b76063a64bbce68
  Building wheel for gym (setup.py): started
  Building wheel for gym (setup.py): finished with status 'done'
  Stored in directory: /home/user/.cache/pip/wheels/cf/a5/c9/87967963aa32540d543e51bcf0d0fc19c5d68b8f49598d3b98
  Building wheel for psutil (setup.py): started
  ERROR: Complete output from command /home/user/miniconda/envs/py37/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-6sf8j1v7/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-vcrccdx3 --python-tag cp37:
  Building wheel for psutil (setup.py): finished with status 'error'

If you want to reproduce it, it can be done via the following dockerfile:

FROM nvidia/cuda:10.0-base-ubuntu18.04

# Install some basic utilities
RUN apt-get update && apt-get install -y \
    curl \
    ca-certificates \
    sudo \
    git \
    bzip2 \
    libx11-6 \
    tmux \
    htop \
 && rm -rf /var/lib/apt/lists/*

# Create a working directory
RUN mkdir /code
WORKDIR /code

# Create a non-root user and switch to it
RUN adduser --disabled-password --gecos '' --shell /bin/bash user \
 && chown -R user:user /code
RUN echo "user ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-user
USER user

# All users can use /home/user as their home directory
ENV HOME=/home/user
RUN chmod 777 /home/user

# Install Miniconda
RUN curl -so ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh \
 && chmod +x ~/miniconda.sh \
 && ~/miniconda.sh -b -p ~/miniconda \
 && rm ~/miniconda.sh
ENV PATH=/home/user/miniconda/bin:$PATH
ENV CONDA_AUTO_UPDATE_CONDA=false

# Create a Python 3.7 environment
RUN /home/user/miniconda/bin/conda install conda-build \
 && /home/user/miniconda/bin/conda create -y --name py37 python=3.7.3 \
 && /home/user/miniconda/bin/conda clean -ya
ENV CONDA_DEFAULT_ENV=py37
ENV CONDA_PREFIX=/home/user/miniconda/envs/$CONDA_DEFAULT_ENV
ENV PATH=$CONDA_PREFIX/bin:$PATH

# CUDA 10.0-specific steps
RUN conda install -y -c pytorch \
    cuda100=1.0 \
    magma-cuda100=2.4.0 \
    "pytorch=1.1.0=py3.7_cuda10.0.130_cudnn7.5.1_0" \
    torchvision=0.3.0 \
 && conda clean -ya

# Install jupyter notebook

RUN pip install jupyter

# Install Minecraft needed libraries
RUN sudo apt-get update
RUN sudo apt-get install openjdk-8-jdk -y
RUN pip install --upgrade --user minerl

# Set the default command to bash
CMD ["/bin/bash"]
1 Like
#3

OK, I made it work. minerl requires gcc to be installed in ubuntu.