google-deepmind/scalable_agent

sed: can't read python.BUILD: No such file or directory

kaustabpal opened this issue · 3 comments

I am trying to install scalable_agent using the Dockerfile provided but I keep getting this error

Cloning into 'lab'...
Checking out files: 100% (2593/2593), done.
sed: can't read python.BUILD: No such file or directory
The command '/bin/sh -c NP_INC="$(python -c 'import numpy as np; print(np.get_include())[5:]')" &&     git clone https://github.com/deepmind/lab.git &&     cd lab &&     sed -i 's@hdrs = glob(\[@hdrs = glob(["'"$NP_INC"'/\*\*/*.h", @g' python.BUILD &&     sed -i 's@includes = \[@includes = ["'"$NP_INC"'", @g' python.BUILD &&     bazel build -c opt python/pip_package:build_pip_package &&     pip install wheel &&     ./bazel-bin/python/pip_package/build_pip_package /tmp/dmlab_pkg &&     pip install /tmp/dmlab_pkg/DeepMind_Lab-1.0-py2-none-any.whl --force-reinstall' returned a non-zero code: 2

How dod I resolve this?

It appears that the python.BUILD file was moved recently in the github repository for DeepMind Lab. In the git clone command of the docker file, it should work cloning this tag https://github.com/deepmind/lab/tree/release-2019-10-07 which is before the python.BUILD was moved

I added this line git clone https://github.com/deepmind/lab.git --branch release-2019-10-07 and now I am getting this error:

ERROR: /lab/BUILD:956:10: C++ compilation of rule '//:deepmind_lab.so' failed (Exit 1) gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 38 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
python/dmlab_module.c:26:10: fatal error: Python.h: No such file or directory
 #include <Python.h>
          ^~~~~~~~~~
compilation terminated.
Target //python/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 435.852s, Critical Path: 90.20s
INFO: 912 processes: 912 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Solved it using branch release-2019-02-04