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

Installation failure on Ubuntu 16.04, Python 3: Non-zero return code '1' from command #40

Closed
zuoxingdong opened this issue Jan 24, 2017 · 1 comment

Comments

@zuoxingdong
Copy link

zuoxingdong commented Jan 24, 2017

I am using Ubuntu 16.04 and Python 3 with Anaconda.

I am following the instruction:

$ sudo apt-get install lua5.1 liblua5.1-0-dev libffi-dev gettext \
   freeglut3-dev libsdl2-dev libosmesa6-dev python-dev python-numpy realpath

Then I run

bazel build :deepmind_lab.so --define headless=glx

which returns

INFO: Found 1 target...
Target //:deepmind_lab.so up-to-date:
  bazel-bin/deepmind_lab.so
INFO: Elapsed time: 4.238s, Critical Path: 3.06s

Then

bazel run :python_module_test --define headless=glx

but it returns errors

INFO: Found 1 target...
Target //:python_module_test up-to-date:
  bazel-bin/python_module_test
INFO: Elapsed time: 0.201s, Critical Path: 0.01s

INFO: Running command line: bazel-bin/python_module_test
Traceback (most recent call last):
  File "/home/....../.cache/bazel/_bazel_......./7acb3f4cd7f8cdaee804168c0bd39fcc/execroot/lab/bazel-out/local-fastbuild/bin/python_module_test.runfiles/org_deepmind_lab/python/dmlab_module_test.py", line 26, in <module>
    import deepmind_lab
ImportError: /home/........./.cache/bazel/_bazel_......../7acb3f4cd7f8cdaee804168c0bd39fcc/execroot/lab/bazel-out/local-fastbuild/bin/python_module_test.runfiles/org_deepmind_lab/deepmind_lab.so: undefined symbol: _Py_ZeroStruct
ERROR: Non-zero return code '1' from command: Process exited with status 1.
@tkoeppe
Copy link
Collaborator

tkoeppe commented Jan 25, 2017

As it says in the readme, Python 3 is not supported. You need Python 2.7.

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