ImportError: No module named openai_ros_common

asked 2020-07-02 10:40:55 -0500

Kolohe113 gravatar image

updated 2022-01-22 16:10:38 -0500

Evgeny gravatar image

So I am doing the tutorial from Openai_ros http://wiki.ros.org/openai_ros/Turtle...,

And when I tried launching my file: roslaunch my_turtlebot2_training start_training.launch , I got the following error:

  File "/home/afrl/catkin_ws/src/my_turtlebot2_training/src/my_start_qlearning_wall_v2.py", line 11, in <module>
    from openai_ros.openai_ros_common import StartOpenAI_ROS_Environment
ImportError: No module named openai_ros_common
[turtlebot2_maze-2] process has died [pid 15799, exit code 1, cmd /home/afrl/catkin_ws/src/my_turtlebot2_training/src/my_start_qlearning_wall_v2.py __name:=turtlebot2_maze __log:=/home/afrl/.ros/log/81d57a66-bc79-11ea-9942-2816ad114f3b/turtlebot2_maze-2.log].
log file: /home/afrl/.ros/log/81d57a66-bc79-11ea-9942-2816ad114f3b/turtlebot2_maze-2*.log
^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

I think it might be I did not check out the version2 of openai_ros. Any help will be appreciated.

edit retag flag offensive close merge delete

Comments

I would definitely check out version2 since it is mentioned in the tutorials and there seem to be some recent bug fixes on that branch. I recently went through the tutorial and it worked well. If this didn't solve your problem, I would recommend to ensure that you are using the correct python version.

christianlandgraf gravatar image christianlandgraf  ( 2020-07-08 12:57:32 -0500 )edit