Closed ahsteven closed 6 years ago
Hm, looks like a linker error. Are you sure you have Python 2 installed?
Well I was trying to install in a conda environment that has python 3 as the main python. I am using python 3 with tensorflow which is what I planned to use to program in deepmind lab. Do you recommend that I install natively? Or how can I install in an environment where python is referring to python 3 ?
We only support Python 2, see #41. I think there's a pull request for Python 3 support, but we don't have anyone committed to testing and supporting Python 3 at this point.
Following the directions after succesfully building lab I run the python module test with the following command.
bazel test //python/tests:python_module_test
and get the following error
(tf-dpmind) teves@teves:~/RL_Codes/lab$ bazel test //python/tests:python_module_test INFO: Analysed target //python/tests:python_module_test (1 packages loaded). INFO: Found 1 test target... FAIL: //python/tests:python_module_test (see /home/teves/.cache/bazel/_bazel_teves/d2c136c2deb45cfbf88bf0208d566c5e/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/testlogs/python/tests/python_module_test/test.log) Target //python/tests:python_module_test up-to-date: bazel-bin/python/tests/python_module_test INFO: Elapsed time: 0.836s, Critical Path: 0.28s INFO: Build completed, 1 test FAILED, 2 total actions //python/tests:python_module_test FAILED in 0.3s /home/teves/.cache/bazel/_bazel_teves/d2c136c2deb45cfbf88bf0208d566c5e/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/testlogs/python/tests/python_module_test/test.log
And here is the info in the test.log file:
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Traceback (most recent call last): File "/home/teves/.cache/bazel/_bazel_teves/d2c136c2deb45cfbf88bf0208d566c5e/bazel-sandbox/7222682539564330915/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/python/tests/python_module_test.runfiles/org_deepmind_lab/python/tests/dmlab_module_test.py", line 26, in
import deepmind_lab
ImportError: /home/teves/.cache/bazel/_bazel_teves/d2c136c2deb45cfbf88bf0208d566c5e/bazel-sandbox/7222682539564330915/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/python/tests/python_module_test.runfiles/org_deepmind_lab/deepmind_lab.so: undefined symbol: PyCObject_Type