Wemo not working in the latest version of HA

Hi. Wemo had worked fine til I completely reinstalled HA on a new Linux VM due to the new Python 3 version requirement stuffing up lots of things. Anyway, brand new install, everything works as before, except Wemo.

I am getting the following error:

Unable to install package pywemo==0.4.25: Command “/home/jinster/homeassistant/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-a8wvps4c/netifaces/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-9d663fa6-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/jinster/homeassistant/include/site/python3.6/netifaces” failed with error code 1 in /tmp/pip-build-a8wvps4c/netifaces/

How do I go about resolving this? Manually install Pywemo?

I found the problem. It comes down to python3.

In my very limited knowledge of Linux, Ubuntu 17 comes with both python2 and python3. So unless you use Python3 specific commands to install PIP3 and Python3-dev, everything gets installed to Python2.

Basically I didn’t have python3-dev installed, didn’t have netdisco installed, which meant netifaces wasn’t installed, which was required for the Wemo discovery using pywemo.