Is there an existing issue for this?
Description
Current Behavior
Loading of Template product is broken
Expected Behavior
Loading should add Template product into Nodes and it should be version controlable.
Steps To Reproduce:
No response
Additional context:
Version
ayon-harmony 0.5.0+dev
What platform were you running when you found the bug?
Windows
You can also provide any additional information relevant to the issue.
Relevant log output:
During load error happened on Product: "harmony.templatePeg" Representation: "tpl" Version: 1
Error message: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\[USER]\\AppData\\Local\\Temp\\tmpj_p2oa3q\\harmony.tpl\\files.vdb'
Traceback (most recent call last):
File "C:\CODE\__YNPUT\ayon-core\client\ayon_core\tools\loader\models\actions.py", line 1005, in _load_representations_by_loader
load_with_repre_context(
File "C:\CODE\__YNPUT\ayon-core\client\ayon_core\pipeline\load\utils.py", line 327, in load_with_repre_context
return loader.load(repre_context, name, namespace, options)
File "C:\CODE\__YNPUT\ayon-core\client\ayon_core\pipeline\load\plugins.py", line 430, in wrapped_method
result = original_method(self, *args, **kwargs)
File "C:\CODE\__YNPUT\ayon-harmony\client\ayon_harmony\plugins\load\load_template.py", line 57, in load
shutil.rmtree(temp_dir)
File "C:\Users\[USER]\AppData\Roaming\uv\python\cpython-3.9.13-windows-x86_64-none\lib\shutil.py", line 759, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Users\[USER]\AppData\Roaming\uv\python\cpython-3.9.13-windows-x86_64-none\lib\shutil.py", line 624, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Users\[USER]\AppData\Roaming\uv\python\cpython-3.9.13-windows-x86_64-none\lib\shutil.py", line 629, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Users\[USER]\AppData\Roaming\uv\python\cpython-3.9.13-windows-x86_64-none\lib\shutil.py", line 627, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\[USER]\\AppData\\Local\\Temp\\tmpj_p2oa3q\\harmony.tpl\\files.vdb'
Is there an existing issue for this?
Description
Current Behavior
Loading of Template product is broken
Expected Behavior
Loading should add Template product into Nodes and it should be version controlable.
Steps To Reproduce:
No response
Additional context:
Version
ayon-harmony 0.5.0+dev
What platform were you running when you found the bug?
Windows
You can also provide any additional information relevant to the issue.
Relevant log output: