Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python module test fails #86

Closed
ahsteven opened this issue Feb 13, 2018 · 3 comments
Closed

python module test fails #86

ahsteven opened this issue Feb 13, 2018 · 3 comments

Comments

@ahsteven
Copy link

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

@tkoeppe
Copy link
Collaborator

tkoeppe commented Feb 13, 2018

Hm, looks like a linker error. Are you sure you have Python 2 installed?

@ahsteven
Copy link
Author

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 ?

@tkoeppe
Copy link
Collaborator

tkoeppe commented Feb 13, 2018

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.

@tkoeppe tkoeppe closed this as completed Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants