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

Integrate pinning file fails with Houdini Explicit Layer Save products #75

Open
2 tasks done
BigRoy opened this issue Oct 27, 2024 · 1 comment · May be fixed by #76
Open
2 tasks done

Integrate pinning file fails with Houdini Explicit Layer Save products #75

BigRoy opened this issue Oct 27, 2024 · 1 comment · May be fixed by #76
Assignees

Comments

@BigRoy
Copy link
Collaborator

BigRoy commented Oct 27, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

The instances that are created at publish time for Houdini explicit layer save paths do not have any instance.data["stagingDir"] or instance.data["ifdPath"] set. Hence the pinning file generation errors on it because it requires either of those attributes to be set.

Expected Behavior:

It should pass fine - or better even, pinning file generation should not occur for those instances.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Create a USD publish with a layer that has Explicit Layer Save Path set in Houdini

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

DEBUG: No staging directory on instance found.
ERROR: No staging directory found.
Traceback (most recent call last):
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 58, in process
    staging_dir = Path(instance.data["stagingDir"])
KeyError: 'stagingDir'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 62, in process
    staging_dir = Path(instance.data["ifdFile"]).parent
KeyError: 'ifdFile'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ynput/.local/share/AYON/dependency_packages/ayon_2406251627_linux-rocky9.zip/dependencies/pyblish/plugin.py", line 528, in __explicit_process
    runner(*args)
  File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/plugins/publish/extract_skeleton_pinning_json.py", line 65, in process
    raise KnownPublishError("Cannot determine staging directory.") from e
ayon_core.pipeline.publish.publish_plugins.KnownPublishError: Cannot determine staging directory.

Additional context:

For context on explicit layer save paths also see: ynput/ayon-houdini#146

@Lypsolon
Copy link
Collaborator

First thing i ran into is the following error when using Deadline.

2024-10-31 14:06:49:  0: STDOUT:   File "/home/ynput/.local/share/AYON/addons/applications_0.2.4/ayon_applications/manager.py", line 581, in run_prelaunch_hooks
2024-10-31 14:06:49:  0: STDOUT:     prelaunch_hook.execute()
2024-10-31 14:06:49:  0: STDOUT:   File "/home/ynput/Documents/GitHub/Lyonh/AyonDev/repos/ayon-usd/client/ayon_usd/hooks/usd_pinning_root.py", line 24, in execute
2024-10-31 14:06:49:  0: STDOUT:     roots = anatomy.roots()
2024-10-31 14:06:49:  0: STDOUT: TypeError: 'dict' object is not callable

@Lypsolon Lypsolon linked a pull request Oct 31, 2024 that will close this issue
3 tasks
@dee-ynput dee-ynput removed the type: bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants