nvidia-omniverse / kit-app-template Goto Github PK
View Code? Open in Web Editor NEWOmniverse Kit App Template
License: Other
Omniverse Kit App Template
License: Other
The build step in this repo seems to communicate with the launcher as the first step to upgrade all the repos. However with the current launcher (1.8.11) it fails, there is a screen shot of the error in issue #4. I fixed it and got this repo to build only by downgrading the Launcher to an earlier version (1.5.7 in my case).
There is a link in the Kit App Template documentation that is supposed to point to this repo, but it is broken.
The relevent page: (https://docs.omniverse.nvidia.com/dev-guide/latest/kit-app-template.html)
The Kitt App Template link on that page points to: (https://github.com/NVIDIA-Omniverse/kit-template) which is wrong.
It should be kit-app-template
We encountered a critical issue while building on the Windows system,
stemming from the line provided below:
The command to reproduce this issue is as follows:
repo.bat package --launch
The reason for this critical issue is that the special character "tm" cannot be converted
from euc_kr (also known as cp949) to utf8.
If the inclusion of the word "tm" is not essential, please remove it.
I follow the tutorials, and run the build.bat, but get the FileNotFoundError
no such file \kit-app-template-main\kit-app-template-main\_build\windows-x86_64\release\kit\dev\all-deps.packman.xml'
I had install create app
Running in powershell, I get the following error when trying to build.
PS Z:\github\ov-kit-helloworld> .\build.bat
Setting user environment variable PM_PACKAGES_ROOT to Z:\packman-repo
SUCCESS: Specified value was saved.
Traceback (most recent call last):
File "Z:\github\ov-kit-helloworld\tools\repoman\repoman.py", line 25, in <module>
bootstrap()
File "Z:\github\ov-kit-helloworld\tools\repoman\repoman.py", line 18, in bootstrap
deps = packmanapi.pull(REPO_DEPS_FILE)
File "Z:\packman-repo\packman-common\6.42\packman\utils.py", line 506, in wrapper_message_block
return func(*args, **kwargs)
File "Z:\packman-repo\packman-common\6.42\packman\main.py", line 1175, in pull
project_path, platform, postscript, remotes, include_tags, exclude_tags, tokens
File "Z:\packman-repo\packman-common\6.42\packman\main.py", line 1198, in pull_with_variable_file
deps = project.get_dependencies(platform, include_tags, exclude_tags)
File "Z:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 363, in get_dependencies
candidate = dep.as_resolved(platform_name, include_tags, exclude_tags)
File "Z:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 701, in as_resolved
dep.link_path = _resolve_keyword(self.link_path, platform)
File "Z:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 53, in _resolve_keyword
template_resolved = template.substitute(platform=platform_str)
File "Z:\packman-repo\python\3.7.12-windows-x86_64\lib\string.py", line 132, in substitute
return self.pattern.sub(convert, self.template)
File "Z:\packman-repo\python\3.7.12-windows-x86_64\lib\string.py", line 129, in convert
self._invalid(mo)
File "Z:\packman-repo\python\3.7.12-windows-x86_64\lib\string.py", line 105, in _invalid
(lineno, colno))
ValueError: Invalid placeholder in string: line 1, col 10
https://docs.omniverse.nvidia.com/kit/docs/kit-app-template/latest/app_from_scratch.html
Hi, when i build my_company.my_app according the docs, the following bugs appears:
`[0.105s] Failed to solve some dependencies locally, syncing with extension registry...
[0.108s] [ext: omni.kit.async_engine-0.0.0] startup
[0.116s] [ext: omni.assets.plugins-0.0.0] startup
[0.120s] [ext: omni.client-1.0.1] startup
[0.128s] [ext: omni.kit.registry.nucleus-0.0.0] startup
2024-01-31 05:55:10 [132,382ms] [Error] [omni.kit.registry.nucleus.utils.common] syncing index failed. URL: 'omniverse://kit-extensions.ov.nvidia.com/exts/kit/default/3'. Result: Result.ERROR_CONNECTION
2024-01-31 05:55:10 [132,387ms] [Error] [omni.ext.plugin] Syncing extension registry failed: registry dict is nullptr.
2024-01-31 05:55:10 [132,392ms] [Error] [omni.ext.plugin] Failed to resolve extension dependencies. Failure hints:
[my_company.my_app-2023.0.0] dependency: (name: 'omni.kit.uiapp', tag: '', version: '', exact: 0, optional: 0) can't be satisfied. Available versions:
(none found)
2024-01-31 05:55:10 [132,405ms] [Error] [omni.kit.app.plugin] Exiting app because of dependency solver failure...
[132.439s] [ext: omni.kit.registry.nucleus-0.0.0] shutdown
[132.441s] [ext: omni.client-1.0.1] shutdown
[132.444s] [ext: omni.assets.plugins-0.0.0] shutdown
[132.446s] [ext: omni.kit.async_engine-0.0.0] shutdown`
When running repo package
I get the error Path does not exist
pointing to a script inside the extension omni.ui when I go to check if it exists it did. So I remembered that Windows doesn't like long paths and decided to clone the same repo in C:\ instead of the longer directory I was using inside My Documents.
So I ran .\build
and .\repo package
again but this time I used CMD instead of PowerShell (I don't know if this has anything to do with it getting solved) and this time I didn't get the error and the packaging process finished successfully.
Source Code here, comparison with this repo's main. I just created and extension and added it to repo.toml to repo_precache_exts section.
This happened in 2 different computers before I did the workaround described above (I used to have the project in C:\Users\User\Documents\Omniverse\Apps\my-kit-app
).
EDIT: Confirmed using CMD was just placebo. It works with PowerShell too, the issue is just the same old windows issue with long paths.
I've got FIleNotFoundError: all-deps.packman.xml when I invoked build.bat. log is here.
C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main>build.bat
Fetching all dependencies.
Before Pull Commands Step. Running 'C:/Users/MyUserName/Downloads/kit-app-template-main/kit-app-template-main/repo.bat link_app'...
Found following Omniverse Apps:
0: cache-2022.2.0 (name: Cache, path: C:\Users\MyUserName\AppData\Local\ov\pkg\cache-2022.2.0)
1: kit-103.5.1 (name: Kit, path: C:\Users\MyUserName\AppData\Local\ov\pkg\kit-103.5.1)
2: view-2022.2.1 (name: View, path: C:\Users\MyUserName\AppData\Local\ov\pkg\view-2022.2.1)
3: nucleus-workstation-2022.3.0 (name: Nucleus Workstation, path: C:\Users\MyUserName\AppData\Local\ov\pkg\nucleus-workstation-2022.3.0)
4: navigator-3.2.0 (name: Nucleus Navigator, path: C:\Users\MyUserName\AppData\Local\ov\pkg\navigator-3.2.0)
5: drive-100.1.11 (name: Drive, path: C:\Users\MyUserName\AppData\Local\ov\pkg\drive-100.1.11)
6: xr-2022.2.0-rel.1 (name: Create XR, path: C:\Users\MyUserName\AppData\Local\ov\pkg\xr-2022.2.0-rel.1)
7: usdview-0.22.8 (name: USDView, path: C:\Users\MyUserName\AppData\Local\ov\pkg\usdview-0.22.8)
8: connectsample-200.1.0 (name: Connect Sample, path: )
9: code-2022.2.0 (name: Code, path: C:\Users\MyUserName\AppData\Local\ov\pkg\code-2022.2.0)
10: create-2022.2.2 (name: Create, path: C:\Users\MyUserName\AppData\Local\ov\pkg\create-2022.2.2)
11: mineways-10.1.0 (name: Mineways, path: C:\Users\MyUserName\AppData\Local\ov\pkg\mineways-10.1.0)
12: marbles_rtx-2021.1.5 (name: Marbles RTX, path: C:\Users\MyUserName\AppData\Local\ov\pkg\marbles_rtx-2021.1.5)
13: showroom-2022.1.0 (name: Showroom, path: C:\Users\MyUserName\AppData\Local\ov\pkg\showroom-2022.1.0)
Selected app: create-2022.2.2 (name: Create, path: C:\Users\MyUserName\AppData\Local\ov\pkg\create-2022.2.2)
Creating a link 'C:/Users/MyUserName/Downloads/kit-app-template-main/kit-app-template-main/_build/windows-x86_64/release/baseapp' -> 'C:\Users\MyUserName\AppData\Local\ov\pkg\create-2022.2.2'
Creating a link 'C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_build\windows-x86_64\release\kit' -> 'C:\Users\MyUserName\AppData\Local\ov\pkg\create-2022.2.2/kit'
Successfully linked an app: create-2022.2.2 (name: Create, path: C:\Users\MyUserName\AppData\Local\ov\pkg\create-2022.2.2)!
[2022-11-16 17:57:38,402][ERROR][omni.repo.man.entry] Exception encountered while running repo_build via ['C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main\tools\repoman\repoman.py', 'build']:
Traceback (most recent call last):
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_man\omni\repo\man\entry.py", line 350, in run_tool
options.func(options)
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_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 "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_build\omni\repo\build\main.py", line 967, in run_repo_tool
run_build(options, repo_folders, None, config)
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_build\omni\repo\build\main.py", line 699, in run_build
repo_folders=repo_folders, platform_host=platform_host, platform_target=platform_target, configs=configs
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_man\omni\repo\man\nvteamcity.py", line 190, in wrapper
result = func(*args, **kwargs)
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_build\omni\repo\build\main.py", line 335, in pull_dependencies
pull_files(packman_target_files_to_pull, platform_target, dependencies)
File "C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main_repo\deps\repo_build\omni\repo\build\main.py", line 320, in pull_files
return_extra_info=True,
File "C:\packman-repo\packman-common\6.42\packman\utils.py", line 506, in wrapper_message_block
return func(*args, **kwargs)
File "C:\packman-repo\packman-common\6.42\packman\main.py", line 1175, in pull
project_path, platform, postscript, remotes, include_tags, exclude_tags, tokens
File "C:\packman-repo\packman-common\6.42\packman\main.py", line 1194, in pull_with_variable_file
project = parse_project_file(project_file_path, tokens, platform)
File "C:\packman-repo\packman-common\6.42\packman\main.py", line 976, in parse_project_file
return proj_parser.parse_file(project_file_path, tokens_n_platform)
File "C:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 1170, in parse_file
return super(ProjectParser, self).parse_file(path, ".user", tokens)
File "C:\packman-repo\packman-common\6.42\packman\xmlparser.py", line 235, in parse_file
root = self._parse_file(filename, tokens)
File "C:\packman-repo\packman-common\6.42\packman\xmlparser.py", line 275, in _parse_file
p.ParseFile(fileobject)
File "..\Modules\pyexpat.c", line 417, in StartElement
File "C:\packman-repo\packman-common\6.42\packman\xmlparser.py", line 196, in start_element
element.start_handler(self, attributes)
File "C:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 842, in start_handler
project = ProjectParser().parse_file(path_abs, parse_helper.tokens)
File "C:\packman-repo\packman-common\6.42\packman\schemaparser.py", line 1170, in parse_file
return super(ProjectParser, self).parse_file(path, ".user", tokens)
File "C:\packman-repo\packman-common\6.42\packman\xmlparser.py", line 235, in parse_file
root = self._parse_file(filename, tokens)
File "C:\packman-repo\packman-common\6.42\packman\xmlparser.py", line 272, in _parse_file
with open(path, "rb") as fileobject:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\MyUserName\Downloads\kit-app-template-main\kit-app-template-main\_build\windows-x86_64\release\kit\dev\all-deps.packman.xml'
Are there plans to update the repository to make it compatible with USD Composer (Create 2023.1.1)? I tried running it, but it seems there is an issue where custom extensions can't find Omniverse extensions. In other words, you can import an Omniverse extension in the app's .kit file, but the same extension fails to be imported in a custom extension's extension.toml file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.