Build and package errors as per kit-app-template

Hi there,

we are trying to build and package kit APP, on ubuntu 22.04, as per template GitHub - NVIDIA-Omniverse/kit-app-template: Omniverse Kit App Template, but got two problems:
• Build miss some files (repo.sh: not found), but seems success finally
• Package fail due to missing PACKAGE-LICENSES file

Cloud you give some clues/ideas that may cause these?
Thank you.

Logs as below:
darien@universe:~/omniverse/kit-app-template$ ./build.sh

Fetching all dependencies.
Before Pull Commands Step. Running ‘/home/darien/omniverse/kit-app-template/repo.sh link_app’…

Found following Omniverse Apps:
0: cache-2022.2.0 (name: Cache, path: /home/darien/.local/share/ov/pkg/cache-2022.2.0)
1: nucleus-workstation-2022.4.2 (name: Nucleus Workstation, path: /home/darien/.local/share/ov/pkg/nucleus-workstation-2022.4.2)
2: isaac_sim-2022.2.1 (name: Isaac Sim, path: /home/darien/.local/share/ov/pkg/isaac_sim-2022.2.1)
3: create-2022.3.3 (name: Create, path: /home/darien/.local/share/ov/pkg/create-2022.3.3)
4: code-2022.3.3 (name: Code, path: /home/darien/.local/share/ov/pkg/code-2022.3.3)

Selected app: create-2022.3.3 (name: Create, path: /home/darien/.local/share/ov/pkg/create-2022.3.3)
Creating a link ‘/home/darien/omniverse/kit-app-template/_build/linux-x86_64/release/baseapp’ → ‘/home/darien/.local/share/ov/pkg/create-2022.3.3’
Creating a link ‘/home/darien/omniverse/kit-app-template/_build/linux-x86_64/release/kit’ → ‘/home/darien/.local/share/ov/pkg/create-2022.3.3/kit’
Successfully linked an app: create-2022.3.3 (name: Create, path: /home/darien/.local/share/ov/pkg/create-2022.3.3)!

After Pull Commands Step. Running ‘/home/darien/omniverse/kit-app-template/repo.sh precache_exts -c release’…
[2023-06-20 15:30:34,646][WARNING][omni.repo.build.pippull] Skipping pip file (doesn’t exist): /home/darien/omniverse/kit-app-template/deps/pip.toml
sh: 1: .//home/darien/omniverse/kit-app-template/repo.sh: not found
sh: 1: .//home/darien/omniverse/kit-app-template/repo.sh: not found
Building configurations…
Running action ‘gmake2’…
Generated _compiler/gmake2/Makefile…
Generated _build/linux-x86_64/debug/compile_commands.json…
Generated _build/linux-aarch64/debug/compile_commands.json…
Generated _build/linux-x86_64/release/compile_commands.json…
Generated _build/linux-aarch64/release/compile_commands.json…
Done (12ms).
Stage Files Step. doing file copy and folder linking.
File doesn’t exist: /home/darien/omniverse/kit-app-template/prebuild.toml. Skipping.
Processing file: /home/darien/omniverse/kit-app-template/_build/generated/prebuild.toml
VS Code setup. Writing: /home/darien/omniverse/kit-app-template/_build/linux-x86_64/release/setup_python_env.sh
VS Code setup. Writing: /home/darien/omniverse/kit-app-template/.vscode/settings.json
*** Building release ***
make: Nothing to be done for ‘all’.
BUILD SUCCEEDED (Took 0.71 seconds)

darien@universe:~/omniverse/kit-app-template$ ./package.sh
Preparing files to package…
[2023-06-20 15:32:29,659][ERROR][omni.repo.man.fileutils] Error: Path does not exist: /home/darien/omniverse/kit-app-template/_build/linux-x86_64/release/PACKAGE-LICENSES
NoneType: None
Traceback (most recent call last):
File “tools/repoman/repoman.py”, line 28, in
omni.repo.man.main(REPO_ROOT)
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/entry.py”, line 369, in main
run_tool()
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/nvteamcity.py”, line 145, in wrapper
result = func(*args, **kwargs)
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/entry.py”, line 368, in run_tool
raise raised
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/entry.py”, line 350, in run_tool
options.func(options)
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/entry.py”, line 201, in
func=lambda args, func=func, config=merged_tool_config: func(args, config),
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_package/omni/repo/package/init.py”, line 998, in run_repo_tool
package(pkg_desc, configs)
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_package/omni/repo/package/init.py”, line 518, in package
src, dst, exclude_path_patterns=package_desc.files_exclude, symbol_check=package_desc.symbol_check, strip_to_first_wildcard=strip_to_first_wildcard
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/fileutils.py”, line 332, in copy_files
_do_copy_item(src, dst, allowed_paths)
File “/home/darien/omniverse/kit-app-template/_repo/deps/repo_man/omni/repo/man/fileutils.py”, line 100, in _do_copy_item
raise RuntimeError(“Path does not exist: %s” % src_path)
RuntimeError: Path does not exist: /home/darien/omniverse/kit-app-template/_build/linux-x86_64/release/PACKAGE-LICENSES

Hi @darien.wei. We have a new version of the app template coming out soon. This may end up being a non-issue then, but I’ll get the team to look at this just in case.

Hi Mati,

Thanks for the reply.
Is any update on this issue? and when will you deliver the new template?

Regards,
Darien

Hey @mati-nvidia ,

thanks for all the great videos about Kit App Template.

Unfortunately build.bat doesn’t seem to find my installed and running Omniverse USD Composer 2023.1.1.
It gives me these errors:

Before Pull Commands Step. Running ‘D:/Github/Nvidia/kit-app-template/repo.bat link_app’… [2023-07-19 11:57:41,177][WARNING][urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x000001671165FC88>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /components [2023-07-19 11:57:43,229][WARNING][urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000016711672448>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /components [2023-07-19 11:57:45,281][WARNING][urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000016711672B48>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’)‘: /components Failed retrieving apps from an Omniverse Launcher, maybe it is not installed? Error: HTTPConnectionPool(host=‘127.0.0.1’, port=33480): Max retries exceeded with url: /components (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x0000016711677288>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it’))

In repo.toml, is the name of the app still “create” since the change of the foundation apps names?
I’ve tried my luck randomly with other strings like ‘composer’, or ‘usd_composer’, etc. But No luck.

I’m stuck at the very first step! I’ve also tried disabling entirely Windows’ firewall, still no luck. I’m a Tech Artist not a Dev, so, I’m sure I’m missing something obvious out ; ) Any idea? Cheers!

1 Like

I have also been trying to use the Kit app template, but it is not working with USD Composer (can’t find Omniverse extensions in a custom extension). It also seems that Omniverse Launcher v1.8.11 broke the configuration. It cannot find the installed apps (v1.8.7 was working fine). I raised an issue on GitHub:

USD Composer · Issue #5 · NVIDIA-Omniverse/kit-app-template (github.com)

@_stef @dvelazco Please hang tight. The new app template is coming and will work differently. It will no longer require a “baseapp” to link against. If you want to continue working with the current app template, please stick with the Kit 104.2-based apps (e.g. USD Composer 2022.3) for now.

@dvelazco Let me know if you’re still having issues with Launcher 1.8.11, but linking against Composer 2022.3. This will be a non-issue with the new app template, but curious if something did change in the Launcher.

2 Likes

Thanks for the update. Looking forward to the updated template!

Yes, I have not been able to build the app since Launcher 1.8.11. You can reproduce this by simply cloning the kit-app-template and running the build.bat script (while having Launcher 1.8.11 installed). My coworker did not do the update and is able to build our custom app as usual.

Hello @mati-nvidia, do you know of a way to install an earlier version of Omniverse Launcher? I am still having issues with v1.8.11. Thanks in advanced.

Hey all. Thanks for your patience. The new template for building apps is here! GitHub - NVIDIA-Omniverse/kit-project-template: A template for developing apps and extensions for Omniverse Kit

1 Like

Hi @mati-nvidia,
Why I run an example app that includes example extensions by “./source/apps/my_name.my_app.sh (linux).”, there is no helloworld extension window pop up ? (I can see it shows up for only 0.01 second and then disappear, the second screenshot is the warning I have got)

Here is the log in the console:

Thanks for your help in advance!!


By the way, kindly remind you that there have an error in the document.

Thanks Mati! Giving it a try. I noticed this is a different repository. Is the kit-app-template just for legacy purposes now?

@lily.chen Thanks for the heads up. I’ve let a developer know about the documentation typo and the issue you ran into.

@dvelazco Yes. This is the new repo you want to use and the other one is legacy at this point.

2 Likes

Moving things over smoothly so far, thanks for the update! If I may ask though, what is the process of compiling a C++ extension?

Hello @mati-nvidia

I got the same issue as Lily’s, which hello world extension popup and closed in no time.
Upload a screen video for your investigation.

Thanks and regards,
Darien

Hi @mati-nvidia

Thanks for your effort.

But one question needs your clarification.
If we take a new template to develop and package it into a new APP. Does it mean there is no need to install Omniverse Launcher and Omniverse APP like Create, Isaac Sim in the Production Machine, but required to execute pull_kit_kernel.sh only after we copy the package zip file to the Production Machine?

Thanks and Regards,
Darien

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.