missing dev-python/python-jose dependency #194

Closed
opened 2021-02-01 22:09:27 +01:00 by serafean · 6 comments

Clean install, first run. Log full of "Setup failed for mobile_app: Unable to import component: No module named 'jose'"

Install of dev-python/python-jose solves it.

use flags: app-misc/homeassistant bluetooth_le_tracker bluetooth_tracker brother co2signal coronavirus deconz denonavr enocean epson homekit_controller kodi -media_extractor meteo_france mqtt speedtestdotnet systemmonitor webostv whois workday zh waqi

Clean install, first run. Log full of "Setup failed for mobile_app: Unable to import component: No module named 'jose'" Install of dev-python/python-jose solves it. use flags: `app-misc/homeassistant bluetooth_le_tracker bluetooth_tracker brother co2signal coronavirus deconz denonavr enocean epson homekit_controller kodi -media_extractor meteo_france mqtt speedtestdotnet systemmonitor webostv whois workday zh waqi`
onkelbeh added the
requirement
label 2021-02-09 22:05:35 +01:00
onkelbeh self-assigned this 2021-02-09 22:05:39 +01:00
Owner

I have dev-python/josepy-1.5.0 installed on my production box.
It is pulled in from ssl -> certbot -> acme -> josepy.
ssl is a suggested useflag, in particular when you use mobile_app.

I have haproxy in front of Home Assistant doing the https.

Looking at https://github.com/home-assistant/core/blob/dev/homeassistant/components/mobile_app/manifest.json, mobile_app only pulls in ["PyNaCl==1.3.0", "emoji==1.2.0"].

I cannot see an error here.

I have dev-python/josepy-1.5.0 installed on my production box. It is pulled in from ssl -> certbot -> acme -> josepy. ssl is a suggested useflag, in particular when you use mobile_app. I have haproxy in front of Home Assistant doing the https. Looking at https://github.com/home-assistant/core/blob/dev/homeassistant/components/mobile_app/manifest.json, mobile_app only pulls in ["PyNaCl==1.3.0", "emoji==1.2.0"]. I cannot see an error here.
Author

ssl use flag is by default enabled.
I have nginx doing ssl, and then forwarding to HA.

josepy is installed. I just tried again, uninstalling python-jose.

`

Logger: homeassistant.setup
Source: setup.py:138
First occurred: 11:06:49 AM (3 occurrences)
Last logged: 11:06:51 AM

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

`

ssl use flag is by default enabled. I have nginx doing ssl, and then forwarding to HA. josepy is installed. I just tried again, uninstalling python-jose. ` Logger: homeassistant.setup Source: setup.py:138 First occurred: 11:06:49 AM (3 occurrences) Last logged: 11:06:51 AM Setup failed for cloud: Unable to import component: No module named 'jose' Setup failed for mobile_app: Unable to import component: No module named 'jose' Setup failed for default_config: Could not set up all dependencies. `
Owner

Just saw, I have dev-python/python-jose-cryptodome-1.3.2-r2 installed on the production box. I will look for an appropriate dependency.

Just saw, I have dev-python/python-jose-cryptodome-1.3.2-r2 installed on the production box. I will look for an appropriate dependency.
Contributor

The real problem is that pycognito needs python-jose to run.
I make the correct fix in https://github.com/onkelbeh/HomeAssistantRepository/pull/35

The real problem is that pycognito needs python-jose to run. I make the correct fix in https://github.com/onkelbeh/HomeAssistantRepository/pull/35
Owner

Yep, according to https://github.com/pvizeli/pycognito/blob/master/setup.py

install_requires=[
        "boto3>=1.10.49",
        "envs>=1.3",
        "python-jose[cryptography]>=3.2.0",
        "requests>=2.22.0",
    ],

I have set:

RDEPEND=">=dev-python/boto3-1.10.49[${PYTHON_USEDEP}]
         >=dev-python/envs-1.3[${PYTHON_USEDEP}]
         >=dev-python/python-jose-3.2.0[${PYTHON_USEDEP}]
         >=dev-python/requests-2.22.0[${PYTHON_USEDEP}]"

looks correct to me

I don't know what is the difference between python-jose-cryptodome and python-jose.

Yep, according to https://github.com/pvizeli/pycognito/blob/master/setup.py ```python install_requires=[ "boto3>=1.10.49", "envs>=1.3", "python-jose[cryptography]>=3.2.0", "requests>=2.22.0", ], ``` I have set: ```bash RDEPEND=">=dev-python/boto3-1.10.49[${PYTHON_USEDEP}] >=dev-python/envs-1.3[${PYTHON_USEDEP}] >=dev-python/python-jose-3.2.0[${PYTHON_USEDEP}] >=dev-python/requests-2.22.0[${PYTHON_USEDEP}]" ``` looks correct to me I don't know what is the difference between python-jose-cryptodome and python-jose.
Owner

I assume this fixed.

I assume this fixed.
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
3 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#194
No description provided.