Setup failed for dhcp #201

Closed
opened 2021-04-24 07:37:37 +02:00 by Tatsh · 4 comments

Getting this error on boot. It does not stop HA from working.

Setup failed for dhcp: Unable to import component: No module named 'async_dns'
Setup failed for default_config: Could not set up all dependencies.

There is no package for async_dns, which I presume is this package.

Getting this error on boot. It does not stop HA from working. >Setup failed for dhcp: Unable to import component: No module named 'async_dns' >Setup failed for default_config: Could not set up all dependencies. There is no package for async_dns, which I presume is [this package](https://pypi.org/project/async-dns/).
onkelbeh self-assigned this 2021-04-24 12:35:42 +02:00
onkelbeh added the
requirement
label 2021-04-24 13:22:26 +02:00
Owner

This one says:

{
  "domain": "dhcp",
  "name": "DHCP Discovery",
  "documentation": "https://www.home-assistant.io/integrations/dhcp",
  "requirements": [
    "scapy==2.4.4", "aiodiscover==1.3.4"
  ],
  "codeowners": [
    "@bdraco"
  ]
}

Neither net-analyzer/scapy or dev-python/aiodiscover pulls it in.
dev-python/aiodiscover pulls ["dnspython>=2.1.0", "ifaddr", "pyroute2>=0.5.18"]

If you can find from where it is pulled, I could add the requirement.
Anyway, I added the Ebuild in dad9e9d907

This one says: ``` { "domain": "dhcp", "name": "DHCP Discovery", "documentation": "https://www.home-assistant.io/integrations/dhcp", "requirements": [ "scapy==2.4.4", "aiodiscover==1.3.4" ], "codeowners": [ "@bdraco" ] } ``` Neither net-analyzer/scapy or dev-python/aiodiscover pulls it in. dev-python/aiodiscover pulls ["dnspython>=2.1.0", "ifaddr", "pyroute2>=0.5.18"] If you can find from where it is pulled, I could add the requirement. Anyway, I added the Ebuild in https://git.edevau.net/onkelbeh/HomeAssistantRepository/commit/dad9e9d907ac500fb2625df8e93cf3b3df617e30
onkelbeh reopened this issue 2021-04-24 13:22:40 +02:00
Author

Thanks. Installing that and pyroute at least allows dhcp module to work. I am not sure what it is supposed to do, but I get this error now.

Apr 24 08:46:47 tatsh hass[1474004]: 2021-04-24 08:46:47 WARNING (MainThread) [pyroute2.netlink] decoding NDA_LLADDR
Apr 24 08:46:47 tatsh hass[1474004]: 2021-04-24 08:46:47 WARNING (MainThread) [pyroute2.netlink] Traceback (most recent call last):
Apr 24 08:46:47 tatsh hass[1474004]:   File "/usr/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1520, in try_to_decode
Apr 24 08:46:47 tatsh hass[1474004]:     cell.decode()
Apr 24 08:46:47 tatsh hass[1474004]:   File "/usr/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1901, in decode
Apr 24 08:46:47 tatsh hass[1474004]:     raise TypeError('Unsupported link layer address length {}'
Apr 24 08:46:47 tatsh hass[1474004]: TypeError: Unsupported link layer address length 0

Not a big deal really. My guess is it may have to do with which interface it decides to attach to or something like that. The system is a router and has multiple interfaces.

Thanks. Installing that and pyroute at least allows dhcp module to work. I am not sure what it is supposed to do, but I get this error now. ``` Apr 24 08:46:47 tatsh hass[1474004]: 2021-04-24 08:46:47 WARNING (MainThread) [pyroute2.netlink] decoding NDA_LLADDR Apr 24 08:46:47 tatsh hass[1474004]: 2021-04-24 08:46:47 WARNING (MainThread) [pyroute2.netlink] Traceback (most recent call last): Apr 24 08:46:47 tatsh hass[1474004]: File "/usr/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1520, in try_to_decode Apr 24 08:46:47 tatsh hass[1474004]: cell.decode() Apr 24 08:46:47 tatsh hass[1474004]: File "/usr/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1901, in decode Apr 24 08:46:47 tatsh hass[1474004]: raise TypeError('Unsupported link layer address length {}' Apr 24 08:46:47 tatsh hass[1474004]: TypeError: Unsupported link layer address length 0 ``` Not a big deal really. My guess is it may have to do with which interface it decides to attach to or something like that. The system is a router and has multiple interfaces.
Author

Those aren't errors actually. The code calls Logger.warning() with the traceback. pyroute2/netlink/__init.py

Those aren't errors actually. The code calls `Logger.warning()` with the traceback. [pyroute2/netlink/__init.py](https://github.com/svinota/pyroute2/blob/master/pyroute2/netlink/__init__.py#L1510)
Author

Anyway, I disabled the integration by setting this instead of default_config: in my configuration.yaml (no dhcp:):

cloud:
config:
counter:
frontend:
history:
image:
input_boolean:
input_datetime:
input_number:
input_select:
input_text:
logbook:
map:
media_source:
mobile_app:
my:
person:
ssdp:
sun:
system_health:
tag:
timer:
updater:
zeroconf:
zone:
Anyway, I disabled the integration by setting this instead of `default_config:` in my `configuration.yaml` (no `dhcp:`): ```yaml cloud: config: counter: frontend: history: image: input_boolean: input_datetime: input_number: input_select: input_text: logbook: map: media_source: mobile_app: my: person: ssdp: sun: system_health: tag: timer: updater: zeroconf: zone: ```
Tatsh closed this issue 2021-05-11 06:40:21 +02:00
Sign in to join this conversation.
No Label
Bug
Bump/Update
Cleanup
Dupe
Enhancement
File Collision
Forked
help wanted
Integration: accuweather
Integration: acmeda
Integration: acomax
Integration: adax
Integration: adguard
Integration: aemet
Integration: aep_ohio
Integration: aep_texas
Integration: airq
Integration: airthings
Integration: airthings_ble
Integration: airtouch5
Integration: airzone
Integration: airzone_cloud
Integration: amazon_polly
Integration: amberelectric
Integration: ambient_station
Integration: analytics_insights
Integration: anel_pwrctrl
Integration: aosmith
Integration: apache_kafka
Integration: apcupsd
Integration: appalachianpower
Integration: apprise
Integration: aprilaire
Integration: asuswrt
Integration: august
Integration: aws
Integration: axis
Integration: backup
Integration: bang_olufsen
Integration: blebox
Integration: blink
Integration: bluetooth
Integration: blue_current
Integration: bmw_connected_drive
Integration: bosch_shc
Integration: bring
Integration: brother
Integration: brottsplatskartan
Integration: bsblan
Integration: bthome
Integration: caldav
Integration: cast
Integration: ccm15
Integration: cloud
Integration: cloudflare
Integration: co2signal
Integration: coautilities
Integration: comelit
Integration: conversation
Integration: debugpy
Integration: deconz
Integration: deluge
Integration: denonavr
Integration: devialet
Integration: devolo_home_control
Integration: dhcp
Integration: discord
Integration: discovergy
Integration: dlna_dmr
Integration: dlna_dms
Integration: doods
Integration: drop_connect
Integration: dsmr
Integration: duotecno
Integration: duquesne_light
Integration: dwd_weather_warnings
Integration: easyenergy
Integration: ecobee
Integration: ecoforest
Integration: ecovacs
Integration: ecowitt
Integration: elgato
Integration: elvia
Integration: energyzero
Integration: enigma2
Integration: enphase_envoy
Integration: epion
Integration: esphome
Integration: evohome
Integration: flexit_bacnet
Integration: flipr
Integration: foscam
Integration: fritzbox
Integration: fronius
Integration: frontend
Integration: fujitsu_anywair
Integration: garages_amsterdam
Integration: gardena_bluetooth
Integration: gdacs
Integration: generic
Integration: geonetnz_quakes
Integration: geonetnz_volcano
Integration: geo_json_events
Integration: geo_rss_events
Integration: gios
Integration: glances
Integration: goodwe
Integration: google
Integration: google_generative_ai_conversation
Integration: govee_ble
Integration: govee_light_local
Integration: hive
Integration: hko
Integration: holiday
Integration: homekit_controller
Integration: homematicip_cloud
Integration: homewizard
Integration: honeywell
Integration: hp_ilo
Integration: html5
Integration: http
Integration: hue
Integration: hunterdouglas_powerview
Integration: husqvarna_automower
Integration: huum
Integration: hydrawise
Integration: iammeter
Integration: ibeacon
Integration: idasen_desk
Integration: ign_sismologia
Integration: image_upload
Integration: indianamichiganpower
Integration: insteon
Integration: ipp
Integration: islamic_prayer_times
Integration: justnimbus
Integration: jvc_projector
Integration: kef
Integration: kentuckypower
Integration: keymitt_ble
Integration: knx
Integration: kostal_plenticore
Integration: krispol
Integration: lamarzocco
Integration: ld2410_ble
Integration: leaone
Integration: led_ble
Integration: life360
Integration: lifx
Integration: linear_garage_door
Integration: litejet
Integration: local_calendar
Integration: local_todo
Integration: loqed
Integration: luci
Integration: lupusec
Integration: lutron
Integration: lutron_caseta
Integration: madeco
Integration: matrix
Integration: matter
Integration: melcloud
Integration: meteoclimatic
Integration: meteo_france
Integration: metoffice
Integration: microbees
Integration: mill
Integration: minecraft_server
Integration: modbus
Integration: mopeka
Integration: motionmount
Integration: motion_blinds
Integration: myuplink
Integration: nam
Integration: netatmo
Integration: nexia
Integration: nextbus
Integration: nextcloud
Integration: nextdns
Integration: nibe_heatpump
Integration: nmap_tracker
Integration: notion
Integration: nsw_rural_fire_service_feed
Integration: nuki
Integration: numato
Integration: nws
Integration: openai_conversation
Integration: openerz
Integration: open_meteo
Integration: opower
Integration: orvibo
Integration: osoenergy
Integration: otbr
Integration: ourgroceries
Integration: overkiz
Integration: p1_monitor
Integration: pegel_online
Integration: permobil
Integration: plex
Integration: plugwise
Integration: powerwall
Integration: private_ble_device
Integration: proxy
Integration: prusalink
Integration: psoklahoma
Integration: pure_energie
Integration: pvoutput
Integration: qingping
Integration: qld_bushfire
Integration: qrcode
Integration: rabbitair
Integration: rachio
Integration: radio_browser
Integration: rainbird
Integration: rainforest_raven
Integration: rainmachine
Integration: rdw
Integration: recorder
Integration: refoss
Integration: renault
Integration: renson
Integration: reolink
Integration: rflink
Integration: rfxtrx
Integration: ridwell
Integration: ring
Integration: risco
Integration: roborock
Integration: roku
Integration: romy
Integration: roomba
Integration: roon
Integration: route53
Integration: rova
Integration: samsam
Integration: samsungtv
Integration: schlage
Integration: scl
Integration: screenlogic
Integration: sensibo
Integration: sensorpush
Integration: sentry
Integration: seven_segments
Integration: sfr_box
Integration: shelly
Integration: sighthound
Integration: signal_messenger
Integration: simplisafe
Integration: sleepiq
Integration: smarttub
Integration: snmp
Integration: songpal
Integration: sonos
Integration: sql
Integration: squeezebox
Integration: ssdp
Integration: subaru
Integration: suez_water
Integration: sunweg
Integration: surepetcare
Integration: swepco
Integration: swiss_public_transport
Integration: switchbot
Integration: switchbot_cloud
Integration: switcher_kis
Integration: system_bridge
Integration: tado
Integration: tailwind
Integration: tankerkoenig
Integration: tasmota
Integration: technove
Integration: tedee
Integration: temper
Integration: tensorflow
Integration: teslemetry
Integration: tessie
Integration: thermobeacon
Integration: thermopro
Integration: thread
Integration: tolo
Integration: tplink
Integration: tplink_omada
Integration: tplink_tapo
Integration: traccar
Integration: traccar_server
Integration: trafikverket_camera
Integration: trafikverket_ferry
Integration: trafikverket_train
Integration: trafikverket_weatherstation
Integration: transmission
Integration: tuya
Integration: twentemilieu
Integration: unifi
Integration: unifiprotect
Integration: unifi_direct
Integration: upnp
Integration: usgs_earthquakes_feed
Integration: v2c
Integration: vallox
Integration: valve
Integration: velbus
Integration: velux
Integration: vicare
Integration: vodafone_station
Integration: vulcan
Integration: wallbox
Integration: waqi
Integration: weatherflow_cloud
Integration: weatherkit
Integration: webmin
Integration: webostv
Integration: wemo
Integration: withings
Integration: wolflink
Integration: workday
Integration: wyoming
Integration: xiaomi_ble
Integration: yalexs_ble
Integration: yeelight
Integration: yolink
Integration: zamg
Integration: zeroconf
Integration: zha
Integration: zhong_hong
Integration: zondergas
Integration: zoneminder
Integration: zwave_js
invalid
New Integration
Python 3.10
Python 3.11
question
requirement
Requirement vanished
slot-conflict
Source Incomplete
SrcDir ${S} mismatch
TopLevelViolation
Update required
virtual
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#201
No description provided.