No troubleshooting tips have been added for this package/stack.
Error: OSError: [Errno 17] File exists
Example:
File "/home/ros/ros/bin/roscreate-pkg", line 35, in <module> roscreate.roscreatepkg.roscreatepkg_main() File "/home/ros/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 112, in roscreatepkg_main create_package(package, author_name(), depends, uses_roscpp=uses_roscpp, uses_rospy=uses_rospy) File "/home/ros/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 77, in create_package os.makedirs(py_path) File "/usr/lib/python2.6/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/home/ros/pkgs/ros_tutorials/beginner_tutorials/src'
Solution:
This was a known issue with ROS 0.10. It was fixed in ROS 0.11. If you do not wish to upgrade, you can change line 76 of ros/tools/roscreate/src/roscreate/roscreatepkg.py
from:
py_path = os.path.join(p, 'src')
to:
py_path = os.path.join(p, 'src', package)