-
Notifications
You must be signed in to change notification settings - Fork 1
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 data into USD pinning file error - _pinning_file_generation_funcs.py #63
Comments
Thanks @Jeremyball - I can not seem to reproduce it here. I think I know what the issue in the code - but your setup would need to confirm that. Can you share your configured "roots" for the project? Or provide the output printed from: import ayon_api
from ayon_core.pipeline import get_current_project_name
print(ayon_api.get_project_roots_by_site_id(get_current_project_name())) I have a feeling you have it configured with backslashes maybe, or with other 'special' characters that may be special to regex patterns. It'd be nice if you can also attach a JSON Publish report from the Publisher UI (you can export that from bottom left in the publisher). In the meantime, I'll prepare a potential fix. |
@Jeremyball Here's a PR to test at least it passing this particular point: #64 However, looking at the code I think the 'matching' it tries to do against the filename will fail anyway (at least without error so you can still publish). At this point in the code the variables for me are:
As you can see - the regex doesn't match it - and hence my pinning file does NOT contain rootless keys @Lypsolon @antirotor Also @antirotor I'm quite sure we don't want the pinning file to be generated for EACH USD file, right? Only for renders? or? |
Hey, thanks for the quick response. Attached publish report Print out: |
Thanks, that confirms it: import re
re.compile(r"E:\AYON\projects")
# Error: error: file C:\Program Files\Autodesk\Maya2025\Python\Lib\re\_parser.py line 438: bad escape \p at position 7 import re
pattern = re.escape(r"E:\AYON\projects")
print(pattern) # prints: E:\\AYON\\projects
re.compile(pattern) So my PR should at least allow you to continue - or if hard for you to update and deploy yourself, otherwise change your path in settings to use forward slashes, like: |
For now I will reconfigure with forward slashes. Thanks! Edit: Confirming publish works as expected |
Current Behavior:
Trying to publish a simple asset, sphere and cube, fails on Integrate data into USD pinning file.
What platform you are running on?
Windows
Steps To Reproduce:
Relevant log output:
Additional context:
plugin versions
usd ( 0.1.1 )
maya ( 0.2.12 )
Maya 2025.2
The text was updated successfully, but these errors were encountered: