New Clean Install of Core, hass fails with error: assert netmask is not None, f'sockaddr_to_ip({addr[0].ifa_netmask}) returned None'

I have just installed the core version, brand new clean install, on a PI 3B+ the system clearly has an IP address as I’m ssh’ed to it and had no problems until starting with the hass command. Entire error dump follows. Any Ideas how to get past this?

Traceback (most recent call last):
  File "/srv/homeassistant/bin/hass", line 11, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 396, in main
    exit_code = asyncio_run(setup_and_run_hass(config_dir, args))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/async_.py", line 29, in asyncio_run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
    return future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 50, in async_setup_component
    return await task  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 120, in _async_setup_component
    await async_process_deps_reqs(hass, config, integration)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 275, in async_process_deps_reqs
    integration.dependencies
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 72, in _async_process_dependencies
    results = await asyncio.gather(*tasks)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/__main__.py", line 290, in setup_and_run_hass
    log_no_color=args.log_no_color)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 142, in async_from_config_file
    config_dict, hass, enable_log=False, skip_pip=skip_pip)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 91, in async_from_config_dict
    await _async_set_up_integrations(hass, config)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 365, in _async_set_up_integrations
    for domain in domains_to_load
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 45, in async_setup_component
    return await setup_tasks[domain]  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 382, in __iter__
    return self.result()  # May raise too.
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 50, in async_setup_component
    return await task  # type: ignore
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 126, in _async_setup_component
    hass, config, integration)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py", line 671, in async_process_component_config
    component = integration.get_component()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py", line 211, in get_component
    cache[self.domain] = importlib.import_module(self.pkg_path)
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 673, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/ssdp/__init__.py", line 9, in <module>
    from netdisco import ssdp, util
  File "/srv/homeassistant/lib/python3.5/site-packages/netdisco/ssdp.py", line 11, in <module>
    import zeroconf
  File "/srv/homeassistant/lib/python3.5/site-packages/zeroconf.py", line 38, in <module>
    import ifaddr
  File "/srv/homeassistant/lib/python3.5/site-packages/ifaddr/__init__.py", line 29, in <module>
    from ifaddr._posix import get_adapters
  File "/srv/homeassistant/lib/python3.5/site-packages/ifaddr/_posix.py", line 84
    assert netmask is not None, f'sockaddr_to_ip({addr[0].ifa_netmask}) returned None'
                                                                                     ^
SyntaxError: invalid syntax

After some investigation I think this is related to using multiple VLAN interfaces on my raspberry pi and not having an IP on the default raw interface, however my knowledge of python and HA is lacking, so I have no idea what to try. Can I export the information it is trying to obtain to a system variable or write it in a static config file?

hello John,
I am having the same issue, did you find anything more? I am ready to share my current setup.
Thank you
Riccardo