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

some Error no issue mentioned #250

Open
Idolphint opened this issue Jun 7, 2024 · 1 comment
Open

some Error no issue mentioned #250

Idolphint opened this issue Jun 7, 2024 · 1 comment

Comments

@Idolphint
Copy link

exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //python/tests:python_module_test

Traceback (most recent call last):
File "/home/ltt/.cache/bazel/_bazel_ltt/4f8fc013420b042f2377cab8a8114977/sandbox/linux-sandbox/961/execroot/org_deepmind_lab/bazel-out/k8-opt/bin/python/tests/python_module_test.runfiles/org_deepmind_lab/python/tests/dmlab_module_test.py", line 23, in
from absl.testing import absltest
File "/home/ltt/.cache/bazel/_bazel_ltt/4f8fc013420b042f2377cab8a8114977/sandbox/linux-sandbox/961/execroot/org_deepmind_lab/bazel-out/k8-opt/bin/python/tests/python_module_test.runfiles/com_google_absl_py/absl/testing/absltest.py", line 564
tempfile_cleanup: TempFileCleanup = TempFileCleanup.ALWAYS
^
SyntaxError: invalid syntax

check your python version > 3.5 (python=3.7 is ok)

ERROR: /home/ltt/ljf_test/lab/python/tests/BUILD:18:8: error loading package '@com_google_absl_py//absl/testing': Unable to find package for @rules_python//python:py_test.bzl: The repository '@rules_python' could not be resolved: Repository '@rules_python' is not defined. and referenced by '//python/tests:python_module_test'
ERROR: Analysis of target '//python/tests:python_module_test' failed; build aborted: Analysis failed

add http_archive rules_python into WORKSPACE, following the instruction in https://github.com/bazelbuild/rules_python/releases

be careful to select your bazel version, now bazel==6.4.0 is ok, too high or too low cannot be work(i am using ubuntu18.04+python3.7)

@tkoeppe
Copy link
Collaborator

tkoeppe commented Jun 10, 2024

Could you make sure to use a recent version of Bazel, too?

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