Robotics StackExchange | Archived questions

Turtlebot launching wile Anaconda is installed

Hello all,

I am pretty new to ROS and trying to write a Turtlebot simulation. I followed the steps explained in here until the one roslaunch turtlebot3_fake turtlebot3_fake.launch. I got the following error at that:

Traceback (most recent call last): File "/opt/ros/kinetic/share/xacro/xacro.py", line 55, in import xacro File "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/init.py", line 35, in import glob File "/home/cydonia/anaconda3/lib/python3.6/glob.py", line 4, in import re ModuleNotFoundError: No module named 're' while processing /home/cydonia/turtlebot3ws/src/turtlebot3/turtlebot3bringup/launch/includes/description.launch.xml: Invalid tag: Cannot load command parameter [robotdescription]: command [/opt/ros/kinetic/share/xacro/xacro.py '/home/cydonia/turtlebot3ws/src/turtlebot3/turtlebot3description/urdf/turtlebot3burger.urdf.xacro'] returned with code [1]. Param xml is The traceback for the exception was written to the log file

I've already encountered some problems related to the fact that Anaconda is installed, but I somehow managed to overcome these but I'm stuck again. How can I make ROS use Python 2.7 instead of Anaconda? Thanks a lot.

Asked by cydonia on 2017-07-05 08:27:30 UTC

Comments

Answers