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

Konnected - update to 103.3 fails with "Setup failed for konnected: Unable to import component" (missing netdisco) #30120

Closed
TazUk opened this issue Dec 21, 2019 · 5 comments · Fixed by #31934

Comments

@TazUk
Copy link

TazUk commented Dec 21, 2019

Home Assistant release with the issue:
v103.3

Last working Home Assistant release (if known):
103.2

Operating environment (Hass.io/Docker/Windows/etc.):
Ubuntu Server 18.04
Python venv 3.7.5

Integration:
konnected
https://www.home-assistant.io/integrations/konnected/

Description of problem:
On upgrade from v102.3 to v103.3:
konnected entities missing, log reports:
2019-12-21 13:44:02 ERROR (MainThread) [homeassistant.setup] Setup failed for konnected: Unable to import component

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

konnected:
   access_token: !secret konnected_token
   devices:
     - id: !secret konnected_device
       host: 192.168.1.247
       port: 14695
       binary_sensors:
         - zone: 1
           name: 'Alarm Armed'
           type: power
         - zone: 2
           name: 'Smoke Detected' 
           type: smoke
         - zone: 3
           name: 'Alarm Triggered'
           type: safety
       switches:
         - zone: out
           name: 'Change Alarm State'
           momentary: 500

Traceback (if applicable):


Additional information:
Configuration check shows missing netdisco:

hass --script check_config
INFO:homeassistant.util.package:Attempting install of colorlog==4.0.2
Testing configuration at /home/homeassistant/.homeassistant
INFO:homeassistant.util.package:Attempting install of HAP-python==2.6.0
Failed config
  General Errors: 
    - Component error: konnected - No module named 'netdisco'

Resolved by:

  1. Stoping HA
  2. activating the venv and installing netdisco
  3. Starting HA
python3.7 -m pip install netdisco
Collecting netdisco
  Downloading https://files.pythonhosted.org/packages/d4/ea/ca49705a8ec9d65def92dd3c2ef27cce5a5b3e0ca7768fb8527af8f95f99/netdisco-2.6.0-py3-none-any.whl (46kB)
     |████████████████████████████████| 51kB 1.9MB/s 
Requirement already satisfied: requests>=2.0 in /srv/homeassistant/lib/python3.7/site-packages (from netdisco) (2.22.0)
Requirement already satisfied: zeroconf>=0.21.0 in /srv/homeassistant/lib/python3.7/site-packages (from netdisco) (0.24.0)
Requirement already satisfied: certifi>=2017.4.17 in /srv/homeassistant/lib/python3.7/site-packages (from requests>=2.0->netdisco) (2019.11.28)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /srv/homeassistant/lib/python3.7/site-packages (from requests>=2.0->netdisco) (1.25.6)
Requirement already satisfied: idna<2.9,>=2.5 in /srv/homeassistant/lib/python3.7/site-packages (from requests>=2.0->netdisco) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /srv/homeassistant/lib/python3.7/site-packages (from requests>=2.0->netdisco) (3.0.4)
Requirement already satisfied: ifaddr in /srv/homeassistant/lib/python3.7/site-packages (from zeroconf>=0.21.0->netdisco) (0.1.6)
Installing collected packages: netdisco
Successfully installed netdisco-2.6.0
@probot-home-assistant
Copy link

Hey there @heythisisnate, mind taking a look at this issue as its been labeled with a integration (konnected) you are listed as a codeowner for? Thanks!

@davidbb
Copy link
Contributor

davidbb commented Dec 25, 2019

I ran into this issue as well. Resolved it the same way as @TazUk with the manual install of netdisco. I think this could be resolved by adding netdisco to the install requirements of the konnected integration.

@heythisisnate
Copy link
Contributor

This is possibly related to #27284 and #29020
netdisco and discovery are optional dependencies for Konnected (not needed if you manually specify IP address and port).

I'm not sure exactly how to address this right now without explicitly making those libraries a strict dependency.

@TSparkas
Copy link

TSparkas commented Jan 16, 2020

I have netdisco installed, but still get same error: - Package konnected setup failed. Component konnected No module named 'netdisco'. Any hints how to solve this?

`~ $ python3.8 -m pip install netdisco

Requirement already satisfied: netdisco in /usr/lib/python3.8/site-packages (2.6.0)
Requirement already satisfied: zeroconf>=0.21.0 in /usr/lib/python3.8/site-packages (from netdisco) (0.24.3)
Requirement already satisfied: requests>=2.0 in /usr/lib/python3.8/site-packages (from netdisco) (2.22.0)
Requirement already satisfied: ifaddr in /usr/lib/python3.8/site-packages (from zeroconf>=0.21.0->netdisco) (0.1.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.8/site-packages (from requests>=2.0->netdisco) (2019.11.28)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python3.8/site-packages (from requests>=2.0->netdisco) (1.25.7)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/lib/python3.8/site-packages (from requests>=2.0->netdisco) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python3.8/site-packages (from requests>=2.0->netdisco) (3.0.4)`

@kit-klein
Copy link
Contributor

This should be fixed by #30894 as discovery now occurs via ssdp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants