ImportError when running Reinforcement Learning using Stable Baselines

Hi, I try to running Reinforcement Learning using Stable Baselines.
When I execute
~/.local/share/ov/pkg/isaac_sim-2021.2.1/python.sh train.py
It shows the error:

File "/home/chinwei.chang/.local/share/ov/pkg/isaac_sim-2021.2.1/kit/python/lib/python3.7/site-packages/stable_baselines3/common/utils.py", line 190, in configure_logger
    raise ImportError("Trying to log data to tensorboard but tensorboard is not installed.")
ImportError: Trying to log data to tensorboard but tensorboard is not installed.

I tried to fix this error and I installed:
~/.local/share/ov/pkg/isaac_sim-2021.2.1/python.sh -m pip install tb-nightly
The error disappeared, and I can run the example.

I’m not sure that do I miss any steps before running this example?

There shouldn’t be anything extra needed, as part of the omniverse launcher install process

python.sh -m pip install -r requirements.txt should automatically get executed.

But if there are issues, you can also run this manually to install tensorboard

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.