ros-infrastructure / rosdep

rosdep multi-package manager system dependency tool
http://ros.org/wiki/rosdep
BSD 3-Clause "New" or "Revised" License
77 stars 170 forks source link

'NoneType' object has no attribute 'strip' #558

Open sumitjagdale opened 7 years ago

sumitjagdale commented 7 years ago

I am trying to install moveit libraries from source on ros version kinetic. $rosdep install -y --from-paths . --ignore-src --rosdistro kinetic

Experienced an error as follow: ERROR: Rosdep experienced an error: 'NoneType' object has no attribute 'strip'

Thanks in advance!

wjwwood commented 7 years ago

I need the traceback if there is one. That is not enough information to easily find the problem.

marcus9384 commented 6 years ago

rosdep version: 0.12.1

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 140, in rosdep_main exit_code = _rosdep_main(args) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 386, in _rosdep_main return _no_args_handler(command, parser, options, args) File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 395, in _no_args_handler return command_handlerscommand File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 592, in command_update error_handler=update_error_handler) File "/usr/local/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 490, in update_sources_list rosdep_data = get_gbprepo_as_rosdep_data(dist_name) File "/usr/local/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py", line 150, in get_gbprepo_as_rosdep_data ctx = create_default_installer_context() File "/usr/local/lib/python2.7/dist-packages/rosdep2/init.py", line 87, in create_default_installer_context m.register_platforms(context) File "/usr/local/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 53, in register_platforms register_linaro(context) File "/usr/local/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 70, in register_linaro (os_name, os_version) = context.get_os_name_and_version() File "/usr/local/lib/python2.7/dist-packages/rosdep2/installers.py", line 115, in get_os_name_and_version os_name = self.os_detect.get_name() File "/usr/local/lib/python2.7/dist-packages/rospkg/os_detect.py", line 656, in get_name self.detect_os() File "/usr/local/lib/python2.7/dist-packages/rospkg/os_detect.py", line 615, in detect_os if os_detector.is_os(): File "/usr/local/lib/python2.7/dist-packages/rospkg/os_detect.py", line 368, in is_os return std_out.strip() == self._os_name_qnx AttributeError: 'NoneType' object has no attribute 'strip'

mikaelarguedas commented 6 years ago

This looks to be an issue in rospkg. maybe this should be ticketed on https://github.com/ros-infrastructure/rospkg

dirk-thomas commented 6 years ago

@sumitjagdale What platform are you experiencing this on?

@marcus9384 I assume yours is QNX based on the line number. Can you try to invoke /bin/uname manually.