AppleTV discovery not working

Hi,

After I updated python (to 3.6.6) I have had problems with HA not able to add my apple tv. I get the following message in the log:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/apple_tv.py", line 175, in atv_discovered
    CONF_START_OFF: False
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/apple_tv.py", line 198, in _setup_atv
    import pyatv
  File "/srv/homeassistant/lib/python3.6/site-packages/pyatv/__init__.py", line 12, in <module>
    from pyatv.pairing import PairingHandler
  File "/srv/homeassistant/lib/python3.6/site-packages/pyatv/pairing.py", line 11, in <module>
    import netifaces
ModuleNotFoundError: No module named 'netifaces'

Can anyone help me? Missing something?
I am running HA 0.79.3

Thanks

I just did a fresh install yesterday of 0.79.3 (Ubuntu Python virtual env) and came across the same error.
My solution was to add the netifaces module. Assuming your pip is for use with python3.6, use:
pip install netifaces

@wmaker
Thanks for the input, I will try it later today. Did you run this command in the virtual environment or as pi user?

I ran this in the virtual environment…same virtual environment I have for HA.

Thanks! This fixed the issue