GXF Codelet Development: Bazel errors

• Hardware Platform (Jetson / GPU)
Nvidia Jetson AGX Orin

• DeepStream Version
7.1

• JetPack Version (valid for Jetson only)
6.1

• TensorRT Version
10.3.0.30-1+cuda12.5 arm64

• NVIDIA GPU Driver Version (valid for GPU only)
540.4.0

• Issue Type( questions, new requirements, bugs)
I’m trying to get started with Python Codelets for DeepStream, following the official documentation. However, I do not have the gxe.py file anywhere on the Jetson.
I did find the GXF repository, and I’m trying to build it using Bazel, but I’m running into several errors relating to unreachable URLs.

It seems similar to this issue.

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
git clone https://github.com/NVIDIA-ISAAC-ROS/gxf.git
cd com_nvidia_gxf
sudo apt install apt-utils
source engine/build/scripts/install_dependencies_jetson.sh --local
bazel build --config=jetpack61

Output:

INFO: Repository io_bazel_rules_go instantiated at:
/home/woutv/gxf/com_nvidia_gxf/WORKSPACE:27:14: in
/home/woutv/gxf/com_nvidia_gxf/third_party/gxf.bzl:264:24: in gxf_workspace
/home/woutv/gxf/com_nvidia_gxf/gxf/repo.bzl:27:10: in nv_gxf_http_archive
/home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in
WARNING: Download from https://urm.nvidia.com/artifactory/sw-isaac-gxf-generic-local/dependencies/external/bazelbuild/rules_go-v0.24.2.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Unknown host: urm.nvidia.com
ERROR: An error occurred during the fetch of repository ‘io_bazel_rules_go’:
Traceback (most recent call last):
File “/home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/bazel_tools/tools/build_defs/repo/http.bzl”, line 132, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://urm.nvidia.com/artifactory/sw-isaac-gxf-generic-local/dependencies/external/bazelbuild/rules_go-v0.24.2.tar.gz] to /home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/io_bazel_rules_go/temp7343231577172118707/rules_go-v0.24.2.tar.gz: Unknown host: urm.nvidia.com
ERROR: /home/woutv/gxf/com_nvidia_gxf/WORKSPACE:27:14: fetching http_archive rule //external:io_bazel_rules_go: Traceback (most recent call last):
File “/home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/bazel_tools/tools/build_defs/repo/http.bzl”, line 132, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://urm.nvidia.com/artifactory/sw-isaac-gxf-generic-local/dependencies/external/bazelbuild/rules_go-v0.24.2.tar.gz] to /home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/io_bazel_rules_go/temp7343231577172118707/rules_go-v0.24.2.tar.gz: Unknown host: urm.nvidia.com
ERROR: Error computing the main repository mapping: no such package ‘@io_bazel_rules_go//go’: java.io.IOException: Error downloading [https://urm.nvidia.com/artifactory/sw-isaac-gxf-generic-local/dependencies/external/bazelbuild/rules_go-v0.24.2.tar.gz] to /home/woutv/.cache/bazel/_bazel_woutv/12b2d844918a3860b09f44266730e4fd/external/io_bazel_rules_go/temp7343231577172118707/rules_go-v0.24.2.tar.gz: Unknown host: urm.nvidia.com

Yes. It is the same issue. You can refer to the Extension Development Workflow: Errors with Bazel.

Which files would I need to edit in my case then? It’s not exactly the same issue.

The repo GitHub - NVIDIA-ISAAC-ROS/gxf: Acceleration-friendly component architecture framework is not released by DeepStream. It may not work with Graph Composer release by DeepStream.

Then how would I go about getting the correct gxe.py file?

Can you tell us which project are you working for? Why can’t you use the pre-built Graph Composer extensions and tools?

I’m trying to set up a custom vision processing pipeline using DeepStream. I am using the pre-built Graph Composer, but when following the guide on Python codelets, I noticed that I do not have the gxe.py file anywhere on my Jetson. Do you have any idea why I’m missing this file?

Thanks!

Actually only Graph Execution Engine — DeepStream documentation is provided to run the graph. No gxe.py available. Please use gxe instead.

What it boils down to is that I want to use codelets within Graph Composer, to allow me to use OpenCV for custom functionalities. Preferably in Python, but C++ is an option too. How would I go about this?

What will you apply the OpenCV algorithm on? The video?

Yes, I want to do some processing on the video frames.

Do you need video inferencing?

Yes, but for that I will most likely use nvinfer within DeepStream.

Since you need inferencing and the access to the video buffers at the same time. We would recommend you to implement the OpenCV algorithm inside the Gst-nvdsvideotemplate — DeepStream documentation library. Then you can use the corresponding extension NvDsSampleExt — DeepStream documentation in your graph.