1.ImportError: cannot import name utils_paths
遇到此问题的情景:下载的别人的文件,然后导入模块部分显示没有my_utils这个模块。
解决过程:首先想到缺什么补什么,可是下载完发现里面并没有utils_path这个py,检查发现下载的文件中有这个。
于是import sys
sys.path.append()
然后就出现了这个问题。想到把它直接放到和脚本一个路径下import,不过后来移回my_utils时产生了init.py这个文件,这个问题就没了,大概是IDE编译了一下?
2.roslaunch turtlebot3_gazebo turtlebot3_stage_1.launch[turtlebot3_stage_1.launch] is neither a launch file in package [turtlebot3_gazebo] nor is [turtlebot3_gazebo] a launch file name
The traceback for the exception was written to the log file
解决方案:source /home/XX/catkin_ws/devel/setup.bash