Hi,
I set up a docker container following the tutorial and get into the container by running this command:
sudo docker run --name isaac-sim --entrypoint bash -it --gpus all -e "ACCEPT_EULA=Y" --rm --network=host \
-v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
-v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
-v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
-v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
-v ~/docker/isaac-sim/config:/root/.nvidia-omniverse/config:rw \
-v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
-v ~/docker/isaac-sim/documents:/root/Documents:rw \
nvcr.io/nvidia/isaac-sim:2021.2.1
I made sure Cache and Nucleus are running. When I tried to run the stable_baseline example located in
/isaac-sim/standalone_examples/api/omni.isaac.jetbot/stable_baselines_example
/isaac-sim/python.sh train.py
The following error occurred:
running as root
Omniverse System Monitor already running.
Traceback (most recent call last):
File "train.py", line 11, in <module>
from stable_baselines3 import PPO
ModuleNotFoundError: No module named 'stable_baselines3'
There was an error running python
There must be something wrong with how the python environment is set up inside the container. Another evidence is that when I run execute python inside python.sh, I would get the following error:
Omniverse System Monitor already running.
Python 3.7.12 (default, Sep 17 2021, 23:13:24)
[GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from omni.isaac.kit import SimulationApp # this import is okay
>>> simulation_app = SimulationApp({"headless": True})
Passing the following args to the base kit application: []
Omniverse Kit cannot be run as the root user without the --allow-root flag.
Running as root should not be necessary under most circumstances.
Doing this may cause kit to encounter errors when running as a normal user again.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/isaac-sim/exts/omni.isaac.kit/omni/isaac/kit/simulation_app.py", line 169, in __init__
self._carb_settings = carb.settings.get_settings()
File "/isaac-sim/kit/plugins/bindings-python/carb/settings/__init__.py", line 27, in get_settings
return get_settings_interface()
File "/isaac-sim/kit/plugins/bindings-python/carb/settings/__init__.py", line 22, in get_settings_interface
return acquire_settings_interface()
RuntimeError: Failed to acquire interface: carb::settings::ISettings (pluginName: nullptr)
>>> from omni.isaac.core import World
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/isaac-sim/exts/omni.isaac.core/omni/isaac/core/__init__.py", line 9, in <module>
from omni.isaac.core.physics_context.physics_context import PhysicsContext
File "/isaac-sim/exts/omni.isaac.core/omni/isaac/core/physics_context/__init__.py", line 9, in <module>
from omni.isaac.core.physics_context.physics_context import PhysicsContext
File "/isaac-sim/exts/omni.isaac.core/omni/isaac/core/physics_context/physics_context.py", line 12, in <module>
from pxr import Usd, UsdGeom, Gf, Sdf, UsdPhysics, PhysxSchema
ImportError: cannot import name 'PhysxSchema' from 'pxr' (unknown location)