Closed 130s closed 9 years ago
this is very likely to forget source /opt/ros... ,rosdep install need ROS_DISTRO environment variables. we realized this is very FAQ so need to warn somewhere, for example
$ git diff
diff --git a/src/rosdep2/sources_list.py b/src/rosdep2/sources_list.py
index 171230a..1194599 100644
--- a/src/rosdep2/sources_list.py
+++ b/src/rosdep2/sources_list.py
@@ -277,6 +277,8 @@ class DataSourceMatcher(object):
:returns: :class:`DataSourceMatcher`
"""
distro_name = rospkg.distro.current_distro_codename()
+ if distro_name is None:
+ print("WARNING: could not find current distro codename, please check ROS_DISTRO environment variable", file=sys.stderr)
if os_override is None:
os_detect = rospkg.os_detect.OsDetect()
That was it, thank you very much. And PR is opened https://github.com/ros-infrastructure/rosdep/issues/384.
Using livecd,