husarion / rosbot_ros

ROS packages for ROSbot 2, 2R and 2 PRO
132 stars 62 forks source link

ModuleNotFoundError: No module named 're' #13

Closed Michdo93 closed 1 year ago

Michdo93 commented 3 years ago

Hi I got this error on ROS Kinetic Ubuntu 16.04 with Anaconda and Python 3.6:

`roslaunch rosbot_description rosbot_rviz_gmapping.launch ... logging to /home/kinetic/.ros/log/b372e2d2-5b09-11eb-a3c8-000c29aa73a6/roslaunch-ubuntu-26232.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/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/kinetic/anaconda3/lib/python3.6/glob.py", line 4, in import re ModuleNotFoundError: No module named 're' while processing /home/kinetic/catkin_ws/src/rosbot_description/src/rosbot_description/launch/rosbot_rviz.launch: while processing /home/kinetic/catkin_ws/src/rosbot_description/src/rosbot_description/launch/rosbot.launch: while processing /home/kinetic/catkin_ws/src/rosbot_description/src/rosbot_description/launch/rosbot_gazebo.launch: Invalid tag: Cannot load command parameter [robot_description]: command [/opt/ros/kinetic/share/xacro/xacro.py '/home/kinetic/catkin_ws/src/rosbot_description/src/rosbot_description/urdf/rosbot.xacro'] returned with code [1].

Param xml is The traceback for the exception was written to the log file `

My goal is to use Python 3 inside my Anaconda Environment. As additional information the Turtlebot 3 Simulation work inside it.

delihus commented 1 year ago

Hi @Michdo93 ! The issue is out of date.

Try our new demos. in rosbot-mapping you will find an example how to use ROSbot with the slam_toolbox. in rosbot-navigation you will find an example how to use ROSbot with the navigation2 stack.

Best regards, JD