ynput / ayon-usd

USD Addon for AYON.
Apache License 2.0
5 stars 1 forks source link

Avoid Crashed Plugin for Integrate Pinning File in host without USD #58

Open BigRoy opened 2 months ago

BigRoy commented 2 months ago

Is there an existing issue for this?

Current Behavior:

When a host does not have the USD libraries then it will list this as a crashed plugin:

image

Expected Behavior:

The plug-in should silently fail or be skipped.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Publish from DCC without USD libs

Are there any labels you wish to add?

Relevant log output:

Filepath:
F:\dev\ayon-usd\client\ayon_usd\plugins\publish\integrate_pinning_file.py

Traceback:
Traceback (most recent call last):
File "F:\dev/ayon-core/client\ayon_core\pipeline\publish\lib.py", line 259, in publish_plugins_discover
module = import_filepath(abspath, mod_name)
File "F:\dev/ayon-core/client\ayon_core\lib\python_module_tools.py", line 31, in import_filepath
module_loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "F:\dev\ayon-usd\client\ayon_usd\plugins\publish\integrate_pinning_file.py", line 13, in 
from ayon_usd.standalone.usd.pinning import generate_pinning_file
File "F:\dev/ayon-usd/client\ayon_usd\standalone\usd\pinning\__init__.py", line 1, in 
from ._pinning_file_generation_funcs import generate_pinning_file
File "F:\dev/ayon-usd/client\ayon_usd\standalone\usd\pinning\_pinning_file_generation_funcs.py", line 7, in 
from pxr import UsdShade, Ar, Sdf
ModuleNotFoundError: No module named 'pxr'

Additional context:

No response