Another problem with Ikea Tradfri and 0.56 / Autoconf problem

HI all,

My first post and my first use of Python, so apologies if I’m wasting anyone’s time.

  1. I have Python 3.6 latest on OS X.

  2. Install Home Assistant and the basics work fine.

  3. I can’t get Ikea Tradfri (the main reason I’m using HA) to work. I get the same problems others have reported - a problem with “Unable to install package DTLSSocket==0.1.3:”

  4. I’ve searched this forum and elsewhere and realise I need to install DTLSSocket, so I’ve run “pip3 install DTLSSocket”

  5. That takes a while but fails with a problem with autoconf. "Running: autoconf
    error: [Errno 2] No such file or directory: ‘autoconf’: ‘autoconf’

  6. I just can’t work out how to install this. Sorry if this has been covered but i’ve followed the same style and when I try to install there is a message of “Could not find a version that satisfies the requirement autoconf (from versions: )
    No matching distribution found for autoconf”

  7. I assume I have to install autoconfig not using the command pip3 install autoconf?

thanks in advance for any help, I can’t wait to get started!

Have the exact same problem.

Running venv, installed Cython successfully (pip3 install Cython --user) and ran into this.

sudo apt-get install autoconf solved DTLSSocket installation for me.
Also got a tip about pip3 install aiocoap since Tradfri is appearently using that.

1 Like

thanks. yes - that worked for me too. thanks!
i didn’t need to install aiocoap though… incase that helps anyone else

So, searched for my problem with tradfri and found this thread, I’ve followed a guide on FB and installed DTLSSocket in my venv and autoconf but now I keep getting this in the log:

Traceback (most recent call last):
  File "/srv/hass/hass_venv/lib/python3.5/site-packages/homeassistant/components/tradfri.py", line 119, in _setup_gateway
    from pytradfri.api.aiocoap_api import api_factory
  File "/srv/hass/hass_venv/lib/python3.5/site-packages/pytradfri/api/aiocoap_api.py", line 9, in <module>
    from aiocoap.transports import tinydtls
ImportError: cannot import name 'tinydtls'```

All of these problems was laid to rest when I used python 3.6 instead

My problems actually started when upgrading to 3.6. I upgraded to Python 3.6.3 and Home Assistant 0.60 from Python 3.5 and Home Assistant 0.59.2.

Installing autoconf solved the problems with DTLSSocket:

sudo apt-get install autoconf

And (in my case in the virtual env) I had to install DTLSSocket afterwards:

pip3 install dtlssocket

I restarted Home Assistant and the Tradfri component is working as expected.