If your starting a fresh install of the IKEA-tradfri plugin, I would recommend trying out the "new" plugin-version. It's easier to install
I was doing a fresh install (after getting weird problems with my previous 2.0 install) when I got errors with the config file. So when I saw your comment about easier install, I started again with the pycoap version.
However, first I had a decent struggle to install the necessary golang compiler (latest, version 1.13.5) with the correct PATH settings.
And now I am stuck at the command:
Code: Select all
python3 tradfricoap.py config IP KEY
because I am getting this error:
Code: Select all
Traceback (most recent call last):
File "tradfricoap.py", line 11, in <module>
import pycoap
File "/usr/local/lib/python3.5/dist-packages/pycoap/__init__.py", line 1, in <module>
from .pycoap import Request, setDebugLevel, GET, PUT, POST
File "/usr/local/lib/python3.5/dist-packages/pycoap/pycoap.py", line 1, in <module>
import _pycoap
ImportError: dynamic module does not define module export function (PyInit__pycoap)
Any ideas how I can fix this?
Note: I am running an updated version of Raspbian on a Raspberry Pi, with my own account (not "pi" account).
Code: Select all
python --version --> Python 2.7.13
Code: Select all
python3 --version --> Python 3.5.3
I have Python 3.7 installed, but read that setting this as default for python3 will give problems running pip3 commands...