Robotics StackExchange | Archived questions

roscore will not load linux on windows

When I try to launch roscore on the new windows linux subsystem (anniversary update feature). I get this series of errors:

Traceback (most recent call last):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/__init__.py", line 307, in main
    p.start()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/parent.py", line 279, in start
    self.runner.launch()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 654, in launch
    self._setup()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 630, in _setup
    self._launch_master()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 394, in _launch_master
    validate_master_launch(m, self.is_core, self.is_rostest)
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/launch.py", line 83, in validate_master_launch
    if not rosgraph.network.is_local_address(m.get_host()):
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/network.py", line 176, in is_local_address
    local_addresses = ['localhost'] + get_local_addresses()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/network.py", line 219, in get_local_addresses
    for iface in netifaces.interfaces():
OSError: [Errno 22] Invalid argument

I have never used ros before, and still being in high-school, I am not too sure what needs fixing. If anyone has an idea, that would be helpful.

Asked by barrowwight on 2016-08-09 22:30:02 UTC

Comments

There have been a few questions about this before. Short answer is that it doesn't work very well: http://answers.ros.org/question/238646/installing-ros-on-ubuntu-bash-in-windows-10/

Asked by ahendrix on 2016-08-09 23:26:45 UTC

@ahendrix is correct: right now, I wouldn't bother with ROS on WSL. Things might improve in the (near) future though (see Microsoft/BashOnWindows#468 fi).

Asked by gvdhoorn on 2016-08-10 01:14:29 UTC

Answers