Skip to content

MoonRay shader plugins register nonexistent Python modules #26

Description

@nicolaspopravka

Observed behavior

The OpenMoonRay v2026.29.1 / OpenUSD 25.05.01 benchmark logs report:

Warning: in _LoadLibModules ... Error loading lib moonrayShaderParser's module 'pxr.MoonrayShaderParser':
ModuleNotFoundError: No module named 'pxr.MoonrayShaderParser'

Warning: in _LoadLibModules ... Error loading lib moonrayShaderDiscovery's module 'pxr.MoonrayShaderDiscovery':
ModuleNotFoundError: No module named 'pxr.MoonrayShaderDiscovery'

The warnings occur with both hd_render and stock usdrecord.

Current impact

The C++ shader discovery and parser plugins still load, and the tested scenes render. This is currently a non-blocking packaging warning rather than a demonstrated rendering failure.

Source evidence

moonray_sdr_plugins registers the two Python modules through TfScriptModuleLoader. Both plugin source directories contain an __init__.py whose comment says it makes the module importable and avoids the warning.

The current CMake install rules install each shared library and plugInfo.json, but do not install either __init__.py into the OpenUSD pxr Python package.

Related upstream report: OpenMoonRay/openmoonray#52

That report concerns an environment where the entire pxr package was unavailable. In this benchmark environment, the OpenUSD Python package loads and only the two MoonRay modules are missing.

Evidence

Next step

Test installing the existing __init__.py files into the corresponding pxr Python-module directories and confirm that both warnings disappear without changing shader discovery or rendered output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    benchmark-findingEvidence-backed benchmark result worth trackingupstream-candidateCandidate for an upstream (ASWF/Pixar/USD-WG) report

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions