Error while generating extension in Graph Composer

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Nvidia RTX A5500
• DeepStream Image: 8.0-gc-triton-devel
• NVIDIA GPU Driver Version (valid for GPU only): 580.95.05
• Issue Type( questions, new requirements, bugs): bugs

I have tried to Generate Extension tool to create a webrtcsink component for the Graph Composer. webrtcsink is a Gstreamer element under the rswebrtc plugin. Since this plugin is not installed and builded inside the deepstream 8.0-gc-triton-devel container I have done this proccess succesfully. Also I am able to view webrtcsink via gst-inspect-1.0 command.
When I press install dependencies button I am observing following error logs.

[Error] [asyncio] Task exception was never retrieved
future: <Task finished name='Task-1644' coro=<GenerateExtnWindow.async_on_install_dependencies_clicked() done, defined at /tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.composer/omni/exp/graph/composer/generate_extension_window.py:161> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "/tmp/.tmpNvXgRaphComposer/run/composer/omni.exp.graph.composer/omni/exp/graph/composer/generate_extension_window.py", line 164, in async_on_install_dependencies_clicked
    self._install_dependencies_process = await asyncio.create_subprocess_exec(*cmd,
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/subprocess.py", line 218, in create_subprocess_exec
    transport, protocol = await loop.subprocess_exec(
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/base_events.py", line 1681, in subprocess_exec
    transport = await self._make_subprocess_transport(
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/unix_events.py", line 207, in _make_subprocess_transport
    transp = _UnixSubprocessTransport(self, protocol, args, shell,
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/base_subprocess.py", line 36, in __init__
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/asyncio/unix_events.py", line 799, in _start
    self._proc = subprocess.Popen(
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/tmp/.tmpNvXgRaphComposer/run/kit/python/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'x-terminal-emulator'

But when I install dependencies by using following commands there is no error showing up.

cd /opt/nvidia/graph-composer/extension-dev
./install_dependencies.sh --allow-root

After that I am clicking Generate button and everything seems to be fine. However, when I click the Build button following error logs are popping up.

2025-10-31 08:00:56 [137,556ms] [Error] [omni.kit.app._impl] [py stderr]: Extracting Bazel installation...
Extracting Bazel installation...2025-10-31 08:00:56 [137,556ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:00:58 [139,230ms] [Error] [omni.kit.app._impl] [py stderr]: Starting local Bazel server and connecting to it...
Starting local Bazel server and connecting to it...2025-10-31 08:00:58 [139,230ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:00:59 [140,420ms] [Error] [omni.kit.app._impl] [py stderr]: Loading:
Loading:2025-10-31 08:00:59 [140,421ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:00:59 [140,421ms] [Error] [omni.kit.app._impl] [py stderr]: Loading: 0 packages loaded
Loading: 0 packages loaded2025-10-31 08:00:59 [140,421ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:00:59 [140,623ms] [Error] [omni.kit.app._impl] [py stderr]: Analyzing: 2 targets (2 packages loaded, 0 targets configured)
Analyzing: 2 targets (2 packages loaded, 0 targets configured)2025-10-31 08:00:59 [140,623ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,627ms] [Error] [omni.kit.app._impl] [py stderr]: Analyzing: 2 targets (34 packages loaded, 123 targets configured)
Analyzing: 2 targets (34 packages loaded, 123 targets configured)2025-10-31 08:01:00 [141,627ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,795ms] [Error] [omni.kit.app._impl] [py stderr]: ERROR: Analysis of target '//extensions/rswebrtc:register_rswebrtc_ext' failed; build aborted: error loading package '@com_extension_dev//build': at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/defs.bzl:17:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/py_binary.bzl:20:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/py_binary_macro_bazel.bzl:16:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/common_bazel.bzl:19:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/py_internal.bzl:23:6: Unable to find package for @rules_python_internal//:py_internal.bzl: The repository '@rules_python_internal' could not be resolved: Repository '@rules_python_internal' is not defined.
ERROR: Analysis of target '//extensions/rswebrtc:register_rswebrtc_ext' failed; build aborted: error loading package '@com_extension_dev//build': at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/defs.bzl:17:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/py_binary.bzl:20:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/py_binary_macro_bazel.bzl:16:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/common_bazel.bzl:19:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/common/py_internal.bzl:23:6: Unable to find package for @rules_python_internal//:py_internal.bzl: The repository '@rules_python_internal' could not be resolved: Repository '@rules_python_internal' is not defined.2025-10-31 08:01:00 [141,795ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,811ms] [Error] [omni.kit.app._impl] [py stderr]: INFO: Elapsed time: 4.233s
INFO: Elapsed time: 4.233s2025-10-31 08:01:00 [141,811ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,811ms] [Error] [omni.kit.app._impl] [py stderr]: INFO: 0 processes.
INFO: 0 processes.2025-10-31 08:01:00 [141,811ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,812ms] [Error] [omni.kit.app._impl] [py stderr]: FAILED: Build did NOT complete successfully (34 packages loaded, 123 targets configured)
FAILED: Build did NOT complete successfully (34 packages loaded, 123 targets configured)2025-10-31 08:01:00 [141,812ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:00 [141,812ms] [Error] [omni.kit.app._impl] [py stderr]: 
2025-10-31 08:01:00 [141,812ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,912ms] [Error] [omni.kit.app._impl] [py stderr]: Loading:
Loading:2025-10-31 08:01:01 [141,912ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,912ms] [Error] [omni.kit.app._impl] [py stderr]: Loading: 0 packages loaded
Loading: 0 packages loaded2025-10-31 08:01:01 [141,913ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,929ms] [Error] [omni.kit.app._impl] [py stderr]: INFO: Build options --action_env, --cpu, and --define have changed, discarding analysis cache.
INFO: Build options --action_env, --cpu, and --define have changed, discarding analysis cache.2025-10-31 08:01:01 [141,929ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,946ms] [Error] [omni.kit.app._impl] [py stderr]: Analyzing: 2 targets (0 packages loaded, 0 targets configured)
Analyzing: 2 targets (0 packages loaded, 0 targets configured)2025-10-31 08:01:01 [141,946ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: ERROR: Analysis of target '//extensions/rswebrtc:register_rswebrtc_ext' failed; build aborted: error loading package '@com_extension_dev//build': at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/defs.bzl:21:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/py_runtime_info.bzl:18:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/util.bzl:17:6: Unable to find package for @bazel_skylib//lib:types.bzl: The repository '@bazel_skylib' could not be resolved: Repository '@bazel_skylib' is not defined.
ERROR: Analysis of target '//extensions/rswebrtc:register_rswebrtc_ext' failed; build aborted: error loading package '@com_extension_dev//build': at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/defs.bzl:21:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/py_runtime_info.bzl:18:6: at /root/.cache/bazel/_bazel_root/5c7c1bd47d4b3815abe45dc4c905a4c6/external/rules_python/python/private/util.bzl:17:6: Unable to find package for @bazel_skylib//lib:types.bzl: The repository '@bazel_skylib' could not be resolved: Repository '@bazel_skylib' is not defined.2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: INFO: Elapsed time: 0.094s
INFO: Elapsed time: 0.094s2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: INFO: 0 processes.
INFO: 0 processes.2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: 

2025-10-31 08:01:01 [141,962ms] [Error] [omni.kit.app._impl] [py stderr]: FAILED: Build did NOT complete successfully (0 packages loaded, 6 targets configured)
FAILED: Build did NOT complete successfully (0 packages loaded, 6 targets configured)2025-10-31 08:01:01 [141,963ms] [Error] [omni.kit.app._impl] [py stderr]: 

That is why I tried to build manually by using following command. (Inside the Target Outpu Directory)

bazel build //extensions/rswebrtc:register_rswebrtc_ext

But following error is seems to be main problem

ERROR: An error occurred during the fetch of repository 'NvDsBaseExt':
   Traceback (most recent call last):
	File "/root/.cache/bazel/_bazel_root/3739b19de8dc0cf66ff98a41e1f08370/external/com_extension_dev/build/graph_extension.bzl", line 113, column 13, in _graph_nvidia_extension_impl
		fail("Failed to get dependencies for extension " + repository_ctx.name +
Error in fail: Failed to get dependencies for extension NvDsBaseExt:
PyInstaller/loader/pyimod02_importers.py:385: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
ERROR: /opt/nvidia/deepstream/deepstream-8.0/webrtc-wrapper-NEW/WORKSPACE:25:23: fetching graph_nvidia_extension rule //external:NvDsBaseExt: Traceback (most recent call last):
	File "/root/.cache/bazel/_bazel_root/3739b19de8dc0cf66ff98a41e1f08370/external/com_extension_dev/build/graph_extension.bzl", line 113, column 13, in _graph_nvidia_extension_impl
		fail("Failed to get dependencies for extension " + repository_ctx.name +
Error in fail: Failed to get dependencies for extension NvDsBaseExt:
PyInstaller/loader/pyimod02_importers.py:385: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
ERROR: /opt/nvidia/deepstream/deepstream-8.0/webrtc-wrapper-NEW/extensions/rswebrtc/BUILD:23:19: //extensions/rswebrtc:libgxf_rswebrtc.so depends on @NvDsBaseExt//:NvDsBaseExt in repository @NvDsBaseExt which failed to fetch. no such package '@NvDsBaseExt//': Failed to get dependencies for extension NvDsBaseExt:
PyInstaller/loader/pyimod02_importers.py:385: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
ERROR: Analysis of target '//extensions/rswebrtc:register_rswebrtc_ext' failed; build aborted:

Also I have changed WORKSPACE file because the generated one wer not including @rules_python and @bazel_skylib dependencies.
I am also attaching my WORKSPACE file.
WORKSPACE.txt (2.1 KB)

My question is what I have done wrong while generating a component.

The issue can be reproduced. We will investigate the issue internally first.