Tradfri and pycryptodome

Hi, I am running Ubuntu 18.04 on a physical machine with HA .71 in virtualenv. I decided to give Tradfri a try because I am tried of my Hue bedroom ceiling light turning on at full brightness when we have a power brownout, not cool at 3 am.

The Tradfri gateway is running but I can’t connect to it from HA. Here are the errors when I start HA:

2018-06-19 13:26:17 ERROR (SyncWorker_34) [homeassistant.util.package] Unable to install package pytradfri[async]==5.4.2: python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4 which is incompatible.
broadlink 0.9 has requirement pycryptodome==3.4.11, but you'll have pycryptodome 3.4 which is incompatible.

Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qi7eczgh/DTLSSocket/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-record-zobyoj8w/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.6/DTLSSocket" failed with error code 1 in /tmp/pip-install-qi7eczgh/DTLSSocket/

2018-06-19 13:26:17 ERROR (MainThread) [homeassistant.requirements] Not initializing tradfri because could not install requirement pytradfri[async]==5.4.2

2018-06-19 13:26:17 ERROR (MainThread) [homeassistant.setup] Setup failed for tradfri: Could not install all requirements.

I think I had to update pycryptodome a while ago because of Broadlink. I’m not super proficient with pip installs so was wondering if anyone can point me in the right direction.

Do you meet the pre-reqs on the tradfri page?

Specifically…

The Python version 3.4.4 or greater is required for this component. The component will not initialize without this and will report a Could not install all requirements error in the logs.

and

Please make sure you have autoconf installed (apt-get install autoconf) if you want to use this component. Also, installing some dependencies might take considerable time (>1h) on slow devices. You might have to use sudo when installing autoconf. 

Thanks for getting back to me! Yes, I am running python 3.6.5 confirmed by running python3 --version and saw the note about autoconf and would swear I insatlled it. I guess I messed up though because when I ran the install command again it went. I might have ran it on another box or received an error yesterday which I didn’t notice. I’m good to go now. :slight_smile: