Error on build example

Hello, I’m trying to integrate sick TIM571 with Isaac. For that I am following the example GitHub - SickScan/sick_scan_nvidia_isaac: NVIDIA Isaac Integration Layer for SICK AG Lidar . But I’m not able to build the program by the following error:

ERROR: no such package ‘@com_nvidia_isaac//third_party’: No WORKSPACE file found in /home/iuri/.cache/bazel/_bazel_iuri/76bd72e83c1f57912f9b196ddc9df8db/external/com_nvidia_isaac
INFO: Elapsed time: 0.051s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

I adjusted the workspace folder to <path = “/home/iuri/isaac”,>

How to solve??

It appears from the error that Bazel could not find the Isaac SDK directory.

Is the sick_scan_nvidia_isaac Git clone directory a sibling of where you untarred the Isaac SDK 2020.2? You updated the WORKSPACE file in sick_scan_nvidia_isaac to refer to the location of the untarred Isaac SDK 2020.2 and received the above error?

Yes, both sick_scan_nvidia_isaac and Isaac SDK 2020.2 folders are in the same directory: /home. Exactly, I updated the WORKSPACE file to refer to the ISAAC SDK 2020.2 folder and when doing the build this error happens.

Try changing the Isaac SDK directory reference to ISAAC SDK 2020.2 ROOT/sdk instead of just ISAAC SDK 2020.2 ROOT. We split engine and sdk into two different Bazel workspaces in the SDK in 2020.2 which may be causing problems here.

It was exactly what I did at first, but then the following error is reported:
ERROR: Failed to load Starlark extension ‘@com_nvidia_isaac_engine//bzl:deps.bzl’.
Cycle in the workspace file detected. This indicates that a repository is used prior to being defined.
The following chain of repository dependencies lead to the missing definition.

  • @com_nvidia_isaac_engine
    This could either mean you have to add the ‘@com_nvidia_isaac_engine’ repository with a statement like http_archive in your WORKSPACE file (note that transitive dependencies are not added automatically), or move an existing definition earlier in your WORKSPACE file.
    ERROR: cycles detected during target parsing
    INFO: Elapsed time: 0.126s
    INFO: 0 processes.
    FAILED: Build did NOT complete successfully (0 packages loaded)

The next idea I had was to separate the two Bazel facilities into two distinct local_repository:
local_repository(
name = “com_nvidia_isaac_engine”,
path = “/home/iuri/isaac/engine”,
)
local_repository(
name = “com_nvidia_isaac_sdk”,
path = “/home/iuri/isaac/sdk”,
)
From there I started to change all the dependencies separating by the different Bazel workspaces … until a point that the following error happened:
Starting local Bazel server and connecting to it…
ERROR: /home/iuri/sick_scan_nvidia_isaac/repositories.bzl:18:1: file ‘@com_nvidia_isaac_engine//bzl:deps.bzl’ does not contain symbol ‘isaac_new_http_archive’ (did you mean ‘isaac_http_archive’?)
ERROR: error loading package ‘’: Extension file ‘repositories.bzl’ has errors
INFO: Elapsed time: 1.965s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

I couldn’t find the reference to isaac_new_http_archive in any other file.

1 Like

I have the same problem. It would be great if you have a solution already. Any ideas?