A hero wanted, how to enable deepin detection in a ros os install?
Tofloor
poster avatar
b***[email protected]
deepin
2017-11-27 15:18
Author
Edited by trdjango at 2017-11-27 07:25

Could not detect OS" when running "rosdep update" on Deepin OS 15.5? Using the method specified below, who can make the deepin operating system compatible with the ros operating system?
the answer I got from the authority about this issue:
"""
Deepin is not a debian variant we currently have support for. Please see the developer guide for how to contribute os detection for Deepin: http://docs.ros.org/independent/api/rosdep/html/developers_guide.html  (http://docs.ros.org/independent/api/rosdep/html/developers_guide.html)
An example of adding an OS detector is here: ros-infrastructure/rospkg#85  (https://github.com/ros-infrastructure/rospkg/pull/85)
And an example of adding an aliased release: #370  (https://github.com/ros-infrastructure/rosdep/pull/370)"""


when running rosdep update, I got


  1. wjg@wjg-PC:~/Desktop$ rosdep update

  2. reading in sources list data from /etc/ros/rosdep/sources.list.d
  3. Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
  4. Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
  5. Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
  6. Hit https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
  7. Hit https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
  8. Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index.yaml
  9. Add distro "groovy"

  10. ERROR: Rosdep experienced an error: Could not detect OS, tried ['windows', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'opensuse', 'opensuse', 'neon', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'debian', 'cygwin', 'centos', 'arch']
  11. Please go to the rosdep page [1] and file a bug report with the stack trace below.
  12. [1] : http://www.ros.org/wiki/rosdep

  13. rosdep version: 0.11.4

  14. Traceback (most recent call last):
  15.   File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 136, in rosdep_main
  16.     exit_code = _rosdep_main(args)
  17.   File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 351, in _rosdep_main
  18.     return _no_args_handler(command, parser, options, args)
  19.   File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 359, in _no_args_handler
  20.     return command_handlers[command](options)
  21.   File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 545, in command_update
  22.     error_handler=update_error_handler)
  23.   File "/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py", line 466, in update_sources_list
  24.     rosdep_data = get_gbprepo_as_rosdep_data(dist_name)
  25.   File "/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py", line 147, in get_gbprepo_as_rosdep_data
  26.     ctx = create_default_installer_context()
  27.   File "/usr/lib/python2.7/dist-packages/rosdep2/__init__.py", line 85, in create_default_installer_context
  28.     m.register_platforms(context)
  29.   File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 50, in register_platforms
  30.     register_linaro(context)
  31.   File "/usr/lib/python2.7/dist-packages/rosdep2/platforms/debian.py", line 63, in register_linaro
  32.     (os_name, os_version) = context.get_os_name_and_version()
  33.   File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 112, in get_os_name_and_version
  34.     os_name = self.os_detect.get_name()
  35.   File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 622, in get_name
  36.     self.detect_os()
  37.   File "/usr/lib/python2.7/dist-packages/rospkg/os_detect.py", line 592, in detect_os
  38.     raise OsNotDetected("Could not detect OS, tried %s"%attempted)
  39. OsNotDetected: Could not detect OS, tried ['windows', 'ubuntu', 'slackware', 'rhel', 'qnx', 'osx', 'opensuse', 'opensuse', 'neon', 'mint', 'linaro', 'gentoo', 'funtoo', 'freebsd', 'fedora', 'elementary', 'debian', 'cygwin', 'centos', 'arch']
Copy the Code




Reply Favorite View the author
All Replies
genetics73
deepin
2017-12-04 08:03
#1
Install Grub-customizer in your OS: after rebooting, it will detect other OSes.
Reply View the author