roscore will not load linux on windows

asked 2016-08-09 22:30:02 -0600

barrowwight gravatar image

updated 2016-08-10 01:13:00 -0600

gvdhoorn gravatar image

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/", line 307, in main
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/", line 279, in start
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/", line 654, in launch
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/", line 630, in _setup
  File "/opt/ros/indigo/lib/python2.7/dist-packages/roslaunch/", 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/", line 83, in validate_master_launch
    if not
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/", line 176, in is_local_address
    local_addresses = ['localhost'] + get_local_addresses()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rosgraph/", 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.

edit retag flag offensive close merge delete


There have been a few questions about this before. Short answer is that it doesn't work very well:

ahendrix gravatar image ahendrix  ( 2016-08-09 23:26:45 -0600 )edit

@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).

gvdhoorn gravatar image gvdhoorn  ( 2016-08-10 01:14:29 -0600 )edit