Cannot import name PhysxScheam from pxr

Using the following minimal python script with Isaac:

from pxr import PhysxSchema, PhysicsSchemaTools

I get the following error:

❯ ./                              
Traceback (most recent call last):
  File "", line 1, in <module>
    from pxr import PhysxSchema, PhysicsSchemaTools
ImportError: cannot import name 'PhysxSchema' from 'pxr' (unknown location)
There was an error running python

This affects many of the demo scripts

1 Like

Hello @m.j.lbach. I moved your post to the Isaac team and let them know! Thanks for reaching out!

See the first note here:

and make sure that your imports occur after the OmniKitHelper starts, the pxr apis are loaded at runtime and can only be imported after the omniverse app starts via OmniKitHelper

Ah sorry, I did manage to figure this out! Thanks for the clarification though, I found this a little unintuitive.

1 Like

Thanks for letting us know that you were able to figure out the issue. We are working on several improvements in our documentation to make it easier to understand.