Dear everybody,
new user trying to play with some of the tools of your common-road suite.
I’m trying to execute the minimal example described here: https://commonroad.in.tum.de/tools/commonroad-rl without success.
As done in other posts of mine, I’ll post the whole history of my trials as there may be some valuable info I don’t notice (please, bear with me).
I started by successfully installing commonroad-all
in clean Python 3.9 virtual environment.
Then I immediately tried to execute the minimal example script, obtaining error:
ModuleNotFoundError: No module named 'gym'
I solved it with python3 -m pip install gym
New error is
ModuleNotFoundError: No module named 'commonroad_rl'
I solved it with python3 -m pip install commonroad-rl
New error is
sumocr 2022.3 requires commonroad-io>=2022.3, but you have commonroad-io 2022.1 which is incompatible.
I solved it with python3 -m pip install --upgrade commonroad-io
New error is
commonroad-rl 2022.2 requires commonroad-io==2022.1, but you have commonroad-io 2022.3 which is incompatible.
I solved it with python3 -m pip install --upgrade commonroad-rl
New error is
ModuleNotFoundError: No module named 'commonroad.visualization.param_server'
I solved it with python3 -m pip install --upgrade commonroad-rl
New error is
sumocr 2022.3 requires commonroad-io>=2022.3, but you have commonroad-io 2022.1 which is incompatible.
This is a transitive dependency issue as this is the very first error I encountered.
I thus ignored this atm, and proceeded to re-try executing the minimal example script.
Now error is
ImportError: cannot import name 'LOG' from 'shapely.geos'
I solved it with python3 -m pip install shapely==1.8.5
(newer versions did not solve the issue)
The last error is
FileNotFoundError: [Errno 2] No such file or directory: '[...]/python3.9/site-packages/commonroad_rl/gym_commonroad/configs.yaml'
Can you tell how to solve it, or what I did wrong?