app-misc/homeassistant depends on dev-python/PyXiaomiGateway-0.14.3 #1247

Open
opened 2023-03-07 20:03:21 +01:00 by zentoo · 5 comments

app-misc/homeassistant depends on dev-python/PyXiaomiGateway-0.14.3 even if USE flag xiaomi_aqara is not set.

app-misc/homeassistant depends on dev-python/PyXiaomiGateway-0.14.3 **even if USE flag xiaomi_aqara is not set**.
Owner

aem, no:

grafik

aem, no: ![grafik](/attachments/4ee544e9-56bd-4cae-a1e5-d3bb4ffd1d74)
1.9 MiB
onkelbeh self-assigned this 2023-03-09 22:44:58 +01:00
Author

So I do not understand what is happening on my installation since at run time homeassistant wants PyXiaomiGateway and I do not have set xiaomi_aqara USE flag.

2023-03-07 18:36:21.506 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 831, in async_init
    flow, result = await task
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 849, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
  File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 955, in async_create_flow
    await async_process_deps_reqs(self.hass, self._hass_config, integration)
  File "/usr/lib/python3.10/site-packages/homeassistant/setup.py", line 385, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
    return await manager.async_get_integration_with_requirements(domain)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration
    await self.async_process_requirements(
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 246, in async_process_requirements
    self._raise_for_failed_requirements(name, missing)
  File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
    raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for xiaomi_aqara not found: ['PyXiaomiGateway==0.14.3'].

image

# grep -HrnI PyXiaomiGateway /var/db/repos/gentoo /var/lib/layman/HomeAssistantRepository | grep '\.ebuild:'
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2022.12.9.ebuild:994:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.1.7.ebuild:997:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.2.4.ebuild:1005:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.3.1.ebuild:1009:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-9999.ebuild:1009:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2022.11.0.ebuild:983:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.1[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.2.5.ebuild:1005:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.2.4.ebuild:409:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2022.12.9.ebuild:406:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.2.5.ebuild:409:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2022.11.0.ebuild:402:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.1[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.1.7.ebuild:406:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.3.1.ebuild:411:	xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] )
/var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.14.1.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/"
/var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.14.3.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/"
/var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.13.4.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/"

=> There is no PyXiaomiGateway references in all ebuilds but homeassistant ones or/var/lib/layman/HomeAssistantRepository/requirements_all.txt.

So why at run time homeassistant ask for it ?

So I do not understand what is happening on my installation since at run time homeassistant wants PyXiaomiGateway and I do not have set xiaomi_aqara USE flag. ``` 2023-03-07 18:36:21.506 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 831, in async_init flow, result = await task File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 849, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/lib/python3.10/site-packages/homeassistant/config_entries.py", line 955, in async_create_flow await async_process_deps_reqs(self.hass, self._hass_config, integration) File "/usr/lib/python3.10/site-packages/homeassistant/setup.py", line 385, in async_process_deps_reqs await requirements.async_get_integration_with_requirements( File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements return await manager.async_get_integration_with_requirements(domain) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 186, in _async_process_integration await self.async_process_requirements( File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 246, in async_process_requirements self._raise_for_failed_requirements(name, missing) File "/usr/lib/python3.10/site-packages/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements raise RequirementsNotFound(integration, [req]) homeassistant.requirements.RequirementsNotFound: Requirements for xiaomi_aqara not found: ['PyXiaomiGateway==0.14.3']. ``` ![image](/attachments/5cac6ab0-a3e6-4b75-9ac3-1c3f3d3fefbc) ``` # grep -HrnI PyXiaomiGateway /var/db/repos/gentoo /var/lib/layman/HomeAssistantRepository | grep '\.ebuild:' /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2022.12.9.ebuild:994: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.1.7.ebuild:997: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.2.4.ebuild:1005: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.3.1.ebuild:1009: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-9999.ebuild:1009: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2022.11.0.ebuild:983: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.1[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant-full/homeassistant-full-2023.2.5.ebuild:1005: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.2.4.ebuild:409: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2022.12.9.ebuild:406: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.2.5.ebuild:409: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2022.11.0.ebuild:402: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.1[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.1.7.ebuild:406: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/app-misc/homeassistant/homeassistant-2023.3.1.ebuild:411: xiaomi_aqara? ( ~dev-python/PyXiaomiGateway-0.14.3[${PYTHON_USEDEP}] ) /var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.14.1.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/" /var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.14.3.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/" /var/lib/layman/HomeAssistantRepository/dev-python/PyXiaomiGateway/PyXiaomiGateway-0.13.4.ebuild:12:HOMEPAGE="https://github.com/Danielhiversen/PyXiaomiGateway/ https://pypi.org/project/PyXiaomiGateway/" ``` => There is no PyXiaomiGateway references in all ebuilds but homeassistant ones or/var/lib/layman/HomeAssistantRepository/requirements_all.txt. So why at run time homeassistant ask for it ?
182 KiB
Owner

Don't know (yet), I also have seen home assistant behave like that, pulls some deps without reason. Some of these 'pulls' somehow vanished again.

You could look in ~/.storage for a reason.

Don't know (yet), I also have seen home assistant behave like that, pulls some deps without reason. Some of these 'pulls' somehow vanished again. You could look in ~/.storage for a reason.
Author

I got his package in deps directory since really long time. Not sure but I think since I use your repository. Note that I always have USE=xiaomi_miio.

I've checked ~/.storage with a recursive grep on xiaomi pattern and found nothing relevant. I can see only references to xiaomi_miio integration and manufacturer names of some of my xiaomi devices managed by zigbee2mqtt.

I got his package in `deps` directory since really long time. Not sure but I think since I use your repository. Note that I always have `USE=xiaomi_miio`. I've checked ~/.storage with a recursive grep on xiaomi pattern and found nothing relevant. I can see only references to `xiaomi_miio` integration and manufacturer names of some of my xiaomi devices managed by zigbee2mqtt.
Owner

Unable to track down further, and to finally get rid of this ticket I now added the xiaomi_aqara useflag to all Ebuilds, so it the user will be able to add it to package.use. This will be published with the next release.

Unable to track down further, and to finally get rid of this ticket I now added the `xiaomi_aqara` useflag to all Ebuilds, so it the user will be able to add it to `package.use`. This will be published with the next release.
onkelbeh added this to the 2024.1.3 milestone 2024-01-06 19:57:27 +01: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: aranet
Integration: aseko_pool_live
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: ffmpeg
Integration: fjaraskupan
Integration: flexit_bacnet
Integration: flipr
Integration: forecast_solar
Integration: foscam
Integration: fritzbox
Integration: fronius
Integration: frontend
Integration: fujitsu_anywair
Integration: fyta
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_assistant_sdk
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: litterrobot
Integration: local_calendar
Integration: local_todo
Integration: loqed
Integration: luci
Integration: lupusec
Integration: lutron
Integration: lutron_caseta
Integration: madeco
Integration: mastodon
Integration: matrix
Integration: matter
Integration: media_extractor
Integration: melcloud
Integration: met
Integration: meteoclimatic
Integration: meteo_france
Integration: metoffice
Integration: microbees
Integration: mill
Integration: minecraft_server
Integration: modbus
Integration: mopeka
Integration: motionblinds_ble
Integration: motionmount
Integration: motion_blinds
Integration: myuplink
Integration: nam
Integration: neato
Integration: netatmo
Integration: nexia
Integration: nextbus
Integration: nextcloud
Integration: nextdns
Integration: nibe_heatpump
Integration: nmap_tracker
Integration: nobo_hub
Integration: norway_air
Integration: notion
Integration: nsw_rural_fire_service_feed
Integration: nuki
Integration: numato
Integration: nut
Integration: nws
Integration: ollama
Integration: oncue
Integration: ondilo_ico
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: slimproto
Integration: smarttub
Integration: smud
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: telegram_bot
Integration: temper
Integration: tensorflow
Integration: teslemetry
Integration: tessie
Integration: thermobeacon
Integration: thermopro
Integration: thread
Integration: tile
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: utility_meter
Integration: v2c
Integration: vallox
Integration: valve
Integration: velbus
Integration: velux
Integration: vicare
Integration: vilfo
Integration: vodafone_station
Integration: vulcan
Integration: wallbox
Integration: waqi
Integration: waze_travel_time
Integration: weatherflow_cloud
Integration: weatherkit
Integration: webmin
Integration: webostv
Integration: wemo
Integration: whirlpool
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#1247
No description provided.