Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Path does not exist error when running repo package #10

Open
rafalfaro-actr opened this issue May 24, 2024 · 4 comments
Open

[BUG]: Path does not exist error when running repo package #10

rafalfaro-actr opened this issue May 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rafalfaro-actr
Copy link

rafalfaro-actr commented May 24, 2024

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.

@rafalfaro-actr
Copy link
Author

rafalfaro-actr commented May 24, 2024

@SchultzC
Copy link
Collaborator

Thank you for this question and for following up with a viable workaround.

Windows long path issues are known, and in the short term, we have added information about this to the relevant packaging documentation and tutorials.

We will work to resolve this in a more permanent way in future releases via proper long path support for Windows.

This question will remain open until resolved.

@SchultzC SchultzC added the bug Something isn't working label Jul 29, 2024
@ElectricFox115
Copy link

I'm having the same issue, only with a different path - Encountered exception RuntimeError: Path does not exist: C:\Users\Admin\Documents\Omniverse KitApp Pres\kit-app-template-main\_build\windows-x86_64\release\extscache\omni.graph.ui_nodes-1.25.1+106.0.0.wx64.r.cp310\omni\graph\ui_nodes\tests\data\golden_images\omni.graph.ui_nodes.test_write_widget_property_with_widget_path.png

Tried moving the file to the primary drive folder, and running build and package from Command Prompt instead of Powershell. No luck so far, sadly.

@ElectricFox115
Copy link

ElectricFox115 commented Aug 7, 2024

Update: this may be due to the repo precache_exts -u command failing before: it warned me that \kit-app-template-main\_build\windows-x86_64\release\extscache wasn't removed due to a file lock issue. Manually deleting extscache and then packaging is mostly working now.

@SchultzC SchultzC changed the title Path does not exist error when running repo package [BUG]: Path does not exist error when running repo package Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants