RLException Error launching rosbot_description rosbot_rviz_gmapping

I am using ROS noetic. Firmware is flashed as tutorial.
When I launch roslaunch rosbot_description rosbot.launch or rosbot_rviz.launch,
the following error pops up:


RLException: while processing /home/husarion/husarion_ws/src/rosbot_description/src/rosbot_description/launch/rosbot_gazebo.launch:
Invalid <param> tag: Cannot load command parameter [robot_description]: no such command [['/opt/ros/noetic/share/xacro/xacro.py', '/home/husarion/husarion_ws/src/rosbot_description/src/rosbot_description/urdf/rosbot.xacro']]. 

Param xml is <param name="robot_description" command="$(find xacro)/xacro.py '$(find rosbot_description)/urdf/rosbot.xacro'"/>
The traceback for the exception was written to the log file

There seems to be an error in finding a xacro.py file?
There is no xacro.py in directory '/opt/ros/noetic/share/xacro/ if it means anything.

Hi Mike,
It is probably caused by missing dependencies. Try to install them with this command:

cd <your-workspace>
rosdep install --from-paths src --ignore-src -r -y

If that won’t help, you can try to do all the steps from this readme. Please let me know if it helps.

Best regards
Karol Konkol
Husarion Team

In case anyone else comes across this error, here is what’s seems to be causing it:

http://wiki.ros.org/noetic/Migration#Use_xacro_instead_of_xacro.py