ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Turtlebot Launching while Anaconda is installed

asked 2017-07-05 09:57:19 -0500

cydonia gravatar image

updated 2017-07-05 13:49:33 -0500

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/",
> line 55, in <module>
>     import xacro   File "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/",
> line 35, in <module>
>     import glob   File "/home/cydonia/anaconda3/lib/python3.6/",
> line 4, in <module>
>     import re ModuleNotFoundError: No module named 're' while processing
> /home/cydonia/turtlebot3_ws/src/turtlebot3/turtlebot3_bringup/launch/includes/description.launch.xml:
> Invalid <param> tag: Cannot load
> command parameter [robot_description]:
> command
> [/opt/ros/kinetic/share/xacro/
> '/home/cydonia/turtlebot3_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_burger.urdf.xacro']
> returned with code [1]. Param xml is
> <param command="$(arg urdf_file)"
> name="robot_description"/> 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.

edit:I've already tried the method suggested here, but that won't work either. I tried to edit the .bashrc file. Right now the last 3 lines of my .bashrc file looks like this:

# added by Anaconda3 4.3.1 installer export
 source /opt/ros/kinetic/setup.bash

I tried deleting anaconda3/bin part and then the line became: export PATH="/home/cydonia:$PATH"

But nothing changed. I truly appreciate any help.

edit retag flag offensive close merge delete


A similar question from only a few hours before this one:

lucasw gravatar image lucasw  ( 2017-07-05 12:29:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-05 12:22:36 -0500

tfoote gravatar image

Your anaconda installation is still interfering with your PYTHONPATH. It creates a python virtual env that appears to be masking your default python implementations.

Mixing virtual envs is likely going to cause problems.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-07-05 08:29:18 -0500

Seen: 676 times

Last updated: Jul 05 '17