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 requirement
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#194