Problem summary
An error is given when importing pxr via Python in Nuke.
Customer reported version
Nuke 15.0v4
Customer reported platform
Windows 10
Steps to reproduce
1) In Nuke, open the Script Editor.
2) Run either command: from pxr import * or from pxr import UsdAbc
3) Observe the results in the Script Editor.
Expected behavior
The USD library should be available when importing from pxr.
Actual behavior
The USD library is missing and provides an error for ""ImportError: DLL load failed while importing _usdAbc: The specified module could not be found" when running the command from pxr import * or from pxr import UsdAbc
Workaround
Ingesting a USD asset as a ReadGeo on the Node Graph allows the import to work as expected. Also, adding the code snippet below to the init.py allows the import to happen without error:
NOTE: Change someUSD to a correct path for the USD file.
Reproduced by Support in:
Nuke 15.0v4 - Windows 11, macOS 13 Ventura
Nuke 15.0v1 - Windows 11
Nuke 14.1v4 - Windows 11
Nuke 14.1v1 - Windows 11, macOS 13 Ventura
Unable to reproduce bug in:
Nuke 14.0v7 - Windows 11, macOS 13 Ventura
Earliest version tested
Nuke 14.0v7 - This issue doesn't appear in this version