You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(usdenv) root@hcss-ecs-e6b2:/home/test# /home/usdenv/bin/python /home/test/payload.py
complexString: a really complex string
Traceback (most recent call last):
File "/home/test/payload.py", line 10, in
paramsAPI = UsdSchemaExamples.ParamsAPI.Apply(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pxr.Tf.ErrorException:
Error in 'pxrInternal_v0_24_11__pxrReserved__::UsdPrim::ApplyAPI' at line 1127 in file /home/OpenUSD/pxr/usd/usd/prim.h : 'Class 'UsdSchemaExamplesParamsAPI' is not correctly registered with the UsdSchemaRegistry as a schema type. The schema may need to be regenerated.'
System Information (OS, Hardware)
Ubuntu 22.04 server 64bit
Package Versions
USD 24.11
Python 3.12.7
Build Flags
The text was updated successfully, but these errors were encountered:
@asluk
I noticed that the capitalization of the library name in the compilation and the class name in the Python binding don't seem to match, and it’s affecting the compilation process.
Description of Issue
cant running schema Python Example.
Steps to Reproduce
from pxr import Usd, UsdSchemaExamples
stage = Usd.Stage.Open("test.usda")
cp = stage.GetPrimAtPath("/Complex")
simple = UsdSchemaExamples.Simple(cp)
target = simple.GetTargetRel()
intAttr = simple.GetIntAttrAttr()
complex = UsdSchemaExamples.Complex(cp)
print('complexString: %s' % complex.GetComplexStringAttr().Get())
obj = stage.GetPrimAtPath("/Object")
paramsAPI = UsdSchemaExamples.ParamsAPI.Apply(obj) #pxr.Tf.ErrorException
assert obj.HasAPI(UsdSchemaExamples.ParamsAPI)
print('mass: %s' % paramsAPI.GetMassAttr().Get())
print('velocity: %s' % paramsAPI.GetVelocityAttr().Get())
print('volume: %s' % paramsAPI.GetVolumeAttr().Get())
(usdenv) root@hcss-ecs-e6b2:/home/test# /home/usdenv/bin/python /home/test/payload.py
complexString: a really complex string
Traceback (most recent call last):
File "/home/test/payload.py", line 10, in
paramsAPI = UsdSchemaExamples.ParamsAPI.Apply(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pxr.Tf.ErrorException:
Error in 'pxrInternal_v0_24_11__pxrReserved__::UsdPrim::ApplyAPI' at line 1127 in file /home/OpenUSD/pxr/usd/usd/prim.h : 'Class 'UsdSchemaExamplesParamsAPI' is not correctly registered with the UsdSchemaRegistry as a schema type. The schema may need to be regenerated.'
System Information (OS, Hardware)
Ubuntu 22.04 server 64bit
Package Versions
USD 24.11
Python 3.12.7
Build Flags
The text was updated successfully, but these errors were encountered: