Python-lirc dependency failed to install

Hey everyone,

After the new update (0.21.0) I was excited to try out the new LIRC component. I followed the tutorials the component page links to, and I got results when I used irexec. Succes!

On to the last step… I added lirc: to my home assistant config file, restarted HASS, and it didn’t want to install. Here is the error it shows on the command line:

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1ft444l4/python-lirc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8qf1w2w6-record/install-record.txt --single-version-externally-managed --compile --home=/tmp/tmpgrofvayk" failed with error code 1 in /tmp/pip-build-1ft444l4/python-lirc/
ERROR:homeassistant.bootstrap:Not initializing lirc because could not install dependency python-lirc==1.2.1```

On the about page in the frontend, it displays the same error again:
`homeassistant.bootstrap:Not initializing lirc because could not install dependency python-lirc==1.2.1`

Following that, I completely stripped down my config file to the following, but still no dice:

```homeassistant:
    name: Home
    latitude: [Redacted]
    longitude: [Redacted]
    temperature_unit: C
    time_zone: Europe/Amsterdam
lirc:
history:
discovery:
updater:
logbook:
frontend:```

I also copied the command between quotations, and tried running it manually. This didn't work however, as the data in the /tmp folder was long gone of course.

Does anyone have any leads?

Thanks in advance,
Chris

So, eventually I figured it out.

For reference, so anyone that runs into this problem knows what to do:

sudo apt-get install python3-lirc
Fixes the problem.

This might be a shortcoming on the component page, but here it is.