roscore giving error on WSL machine
I have WSL (windows subsystem for linux) on my windows PC and I've been trying to follow the instructions given in the tutorial here - ROS wiki page - I'm using ROS indigo version. As per the instruction in the tutorial when I try typing
$ roscore
I get the following traceback error
... logging to /home/bchander/.ros/log/3ccbc5ec-2406-11e7-8358-562737a1c771/roslaunch-BHANUCHAND-632.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://localhost:53878/ ros_comm version 1.11.21
SUMMARY
PARAMETERS * /rosdistro: indigo * /rosversion: 1.11.21
NODES
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
What could be the possible solution for this?