Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ModuleNotFoundError: No module named 're'

I was following this ROS tutorial https://www.youtube.com/watch?v=8ckSl4MbZLg&t=84s and got the following error:

roslaunch mybot_gazebo mybot_world.launch

... logging to /home/mallikarjun/.ros/log/47f3e6c2-6153-11e7-9730-9439e5050f5a/roslaunch-mallikarjun-Ideapad-Z570-21214.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last): File "/opt/ros/lunar/share/xacro/xacro.py", line 55, in <module> import xacro File "/opt/ros/lunar/lib/python2.7/dist-packages/xacro/__init__.py", line 35, in <module> import glob File "/home/mallikarjun/anaconda3/lib/python3.6/glob.py", line 4, in <module> import re

ModuleNotFoundError: No module named 're'

Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/lunar/share/xacro/xacro.py '/home/mallikarjun/mybot_ws/src/mybot_description/urdf/mybot.xacro'] returned with code [1].

Param xml is The traceback for the exception was written to the log file´╗┐