Using the following minimal python script with Isaac:
from pxr import PhysxSchema, PhysicsSchemaTools
I get the following error:
❯ ./python.sh test.py
Traceback (most recent call last):
File "test.py", 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!
@m.j.lbach
See the first note here:
https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/python_environment.html#usage-example
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.
Sorry i’m having a similar problem , and the link with solution is not available anymore. Can you elaborate more on the solution?