Problem with Python toolchain

for 2 days I’ve been trying to run the command : bazel build //apps/samples/stereo_dummy
I succeeded by modifying .bazelrc but I can’t run the command: bazel run packages/cart_delivery/apps:cart_delivery
I’ve been testing with conda and with different versions of Python.
Here are the errors I found:
ERROR: --python_top is disabled by --incompatible_use_python_toolchains. Instead of configuring the Python runtime directly, register a Python toolchain. See You can temporarily revert to the legacy flag-based way of specifying toolchains by setting --incompatible_use_python_toolchains=false.
ERROR: Build options are invalid
INFO: Elapsed time: 22.380s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)


Hi bascoul,
i had the same problem. I fixed it by adding:

build --incompatible_use_python_toolchains=false

in the ~/isaac/.bazelrc file

and adding:

name = “python3”,
files = [ ],
interpreter_path = “/usr/bin/python3”,

in the ~/isaac/engine/build/BULD file.

You maybe have to adjust your python path when it is different on your system :)
I hope this helps
Best Markus

Hi Markus,

Thanks, i can try now The factory of the Future.