Error of running demo

I’m new to CommonRoad.
I tried running the demo of official websites.
I saw AttributeError:
File “…/Commonroad/main.py”, line 20, in
scenario.draw(rnd, draw_params={‘time_begin’: i})
File “…/commonroad/scenario/scenario.py”, line 1188, in draw
renderer.draw_scenario(self, draw_params)
File “…/commonroad/visualization/mp_renderer.py”, line 376, in draw_scenario
obj.lanelet_network.draw(self, draw_params.lanelet_network)
AttributeError: ‘dict’ object has no attribute ‘lanelet_network’

What can I do to fix this issue? Thank you!

Unfortunately, the minimal example and tutorials on the website are still based on the previous commonroad-io version and not on commonroad-io 2022.3. We will fix this as soon as possible.
In the meantime, you can install commonroad-io 2022.2:
pip install commonroad-io==2022.2

Sorry for the inconvenience!

Thank you, sir!
And I have the other question:
File “…/commonroad/visualization/mp_renderer.py”, line 375 and line 376, in draw_scenario
draw_params = self.draw_params or draw_params
obj.lanelet_network.draw(self, draw_params.lanelet_network)
Whether to pass call_stack parameter to draw function.

The call_stack parameter of the draw_scenario function is in the most use case not required.

I had a similar issue, and I followed the suggestion below. Now when trying to run “0. Preparation” under the “Uninformed Search Algorithms” tutorial I get “ModuleNotFoundError: No module named ‘commonroad_dc’”. How can I fix this issue?

@stephdinu8356 Please create a new post in the category CommonRoad-Search. Otherwise, the colleagues may overlook your latest question since this discussion here is in the category CommonRoad-IO