Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find Component Light.IkeaTradfri #10119

Closed
Tastr1 opened this issue Oct 24, 2017 · 4 comments
Closed

Unable to find Component Light.IkeaTradfri #10119

Tastr1 opened this issue Oct 24, 2017 · 4 comments

Comments

@Tastr1
Copy link

Tastr1 commented Oct 24, 2017

Running Home Assistant 0.56.0

Python release python3.5-version

Home Assistant
Invalid Config
The following components and platforms could not be set up:

Tradfri

Description of problem:
2017-10-24 15:42:19 ERROR (MainThread) [homeassistant.loader] Unable to find component light.IkeaTradfri 2017-10-24 15:42:26 ERROR (Thread-14) [homeassistant.util.package] Unable to install package DTLSSocket==0.1.3: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-2kqc819x/DTLSSocket/ 2017-10-24 15:42:26 ERROR (MainThread) [homeassistant.setup] Not initializing tradfri because could not install dependency DTLSSocket==0.1.3 2017-10-24 15:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for tradfri: Could not install all requirements. 2017-10-24 15:42:28 ERROR (Thread-18)
I have tried to find a solution for this by following the instructions in various posts.
I don´t know how this can be solved? I hope someone has an idea how to fix this?

configuration.yaml

tradfri:

host: ip-address

api_key: security code

@michaelsiepmann
Copy link

I've had the same problem yesterday.

The solution for me was to manually install DTLSSocket. But this worked only, when I've installed Cython.

sudo pip3 install Cython
sudo pip3 install DTLSSocket

Make sure that this will be done in the same terminal-window, where you start the homeassistant. This was another mistake I've made.

Always start homeassistant with the options -v --debug. This writes informations into the logfile and you will see what was the problem.

@mmalkus
Copy link

mmalkus commented Oct 24, 2017

I've got the same problem, only on my raspberry pi B
Hassio has no access to pip3 so unable to solve the issue like you suggest

@Tastr1
Copy link
Author

Tastr1 commented Oct 27, 2017

Thank you for the reply and suggestions.

I could not install to /srv/homeassistant/bin/ folder Cython because it is already installed elsewhere.

I´m using VirtualEnv for Homeassistant and also using Homebridge on PI3. Therefore there are some owner conflicts with /usr/.cache/pip ? Should it be /home/homeassistant/pip or /srv/homeassistant/bin/

I´m also using older version of AppleTV so it wouldnt work anyway. But same kind of issue installing dependency.

Does this mean that I need to reinstall homebridge and homeassistant? Currently I have no need for homebridge and I installed it just to experience how it works. Homeassistant is the one I would use.

Here is home-assistant.log information:

2017-10-27 08:34:04 ERROR (MainThread) [homeassistant.loader] Unable to find component light.IkeaTradfri
2017-10-27 08:34:12 ERROR (Thread-18) [homeassistant.util.package] Unable to install package DTLSSocket==0.1.3: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-hr1xkrr2/DTLSSocket/
2017-10-27 08:34:12 ERROR (MainThread) [homeassistant.setup] Not initializing tradfri because could not install dependency DTLSSocket==0.1.3
2017-10-27 08:34:12 ERROR (MainThread) [homeassistant.setup] Setup failed for tradfri: Could not install all requirements.
2017-10-27 08:34:13 ERROR (Thread-21) [homeassistant.components.notify.ios] The notify.ios platform was loaded but no devices exist! Please check the documentation at https://home-assistant.io/ecosystem/ios/notifications/ for more information
2017-10-27 08:34:53 ERROR (Thread-14) [homeassistant.util.package] Unable to install package pyatv==0.3.5: Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3g664z1e/cffi/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-vj954pov-record/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.5/cffi" failed with error code 1 in /tmp/pip-build-3g664z1e/cffi/
2017-10-27 08:34:53 ERROR (MainThread) [homeassistant.setup] Not initializing apple_tv because could not install dependency pyatv==0.3.5
2017-10-27 08:34:53 ERROR (MainThread) [homeassistant.setup] Setup failed for apple_tv: Could not install all requirements.
2017-10-27 08:36:07 WARNING (Thread-22) [pychromecast.socket_client] Heartbeat timeout, resetting connection
2017-10-27 09:43:23 WARNING (Thread-22) [pychromecast.socket_client] Heartbeat timeout, resetting connection

@gstevenson gstevenson mentioned this issue Oct 30, 2017
@Tastr1
Copy link
Author

Tastr1 commented Nov 5, 2017

I made an fresh installation of Hass.io and now using latest 0.57.1 and now AppleTV works, Tradfri works. Great! Awesome update.

@Tastr1 Tastr1 closed this as completed Nov 5, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants