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

Bazel doesn't allow using python 2.7 anymore, Dockerfile fails #174

Open
apoorvagnihotri opened this issue Jan 22, 2025 · 1 comment
Open

Comments

@apoorvagnihotri
Copy link

apoorvagnihotri commented Jan 22, 2025

151.8 ERROR: Traceback (most recent call last):
151.8   File "/drivers/lab/BUILD", line 923, column 11, in <toplevel>
151.8           [py_binary(
151.8   File "/root/.cache/bazel/_bazel_root/3641ac266fa7baa0d16c7e1c7b068466/external/rules_python+/python/py_binary.bzl", line 41, column 13, in py_binary
151.8           fail("Python 2 is no longer supported: https://github.com/bazelbuild/rules_python/issues/886")
151.8 Error in fail: Python 2 is no longer supported: https://github.com/bazelbuild/rules_python/issues/886
151.8 ERROR: /drivers/lab/BUILD: no such target '//:deepmind_lab.so': target 'deepmind_lab.so' not declared in package '' defined by /drivers/lab/BUILD
151.8 ERROR: /drivers/lab/python/pip_package/BUILD:6:10: no such target '//:deepmind_lab.so': target 'deepmind_lab.so' not declared in package '' defined by /drivers/lab/BUILD and referenced by '//python/pip_package:build_pip_package'
151.8 ERROR: Analysis of target '//python/pip_package:build_pip_package' failed; build aborted: Analysis failed
151.8 INFO: Elapsed time: 23.228s, Critical Path: 0.01s
151.8 INFO: 1 process: 1 internal.
151.8 ERROR: Build did NOT complete successfully

When creating a docker image from the dockerfile, I am not able to create it successfully. When running the script present here, install-dmlab.sh. The building process fails since bazel installed via the script is (8.0.1) and I think it no longer allows building things using older python. Does the script need to change in order to install older version of bazel?

@apoorvagnihotri apoorvagnihotri changed the title Bazel doesn't allow using python 2.7 anymore Bazel doesn't allow using python 2.7 anymore, Dockerfile fails Jan 22, 2025
@danijar
Copy link
Owner

danijar commented Jan 24, 2025

Yeah either that or dmlab needs to change their BUILD file to remove the Python 2 rules (which aren't used anyways).

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