homeassistant-min-0.118.5 ebuild requires cryptography-3.2.1, but hass won't run w/o 3.2 #192

Closed
opened 2020-12-14 20:04:47 +01:00 by Ghost · 2 comments

Installing the latest stable homeassistant-min (0.118.5) pulls in a very minor cryptography upgrade (3.2.1) that breaks hass. Downgrading to 0.118.4 then downgrades crypto to 3.2, and hass actually runs. Seems like a simple ebuild fix, that is, if crypto 3.2 actually works. Otherwise, maybe there is functional diff between crypto 3.2.1 and 3.2, thus the reason for the bump.

I'm just trying to get HA-min to install for the very first time.

Also, I'm running only python-3.8, and have all packages compiled for 3.8 only.

After installing 0.118.5:

 $ hass --help
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 3.2.1 (/usr/lib/python3.8/site-packages), Requir
ement.parse('cryptography==3.2'), {'homeassistant'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant==0.118.5', 'console_scripts', 'hass')())
  File "/usr/lib/python3.8/site-packages/homeassistant/__main__.py", line 278, in main
    args = get_arguments()
  File "/usr/lib/python3.8/site-packages/homeassistant/__main__.py", line 60, in get_arguments
    import homeassistant.config as config_util
  File "/usr/lib/python3.8/site-packages/homeassistant/config.py", line 14, in <module>
    from homeassistant import auth
  File "/usr/lib/python3.8/site-packages/homeassistant/auth/__init__.py", line 16, in <module>
    from .mfa_modules import MultiFactorAuthModule, auth_mfa_module_from_config
  File "/usr/lib/python3.8/site-packages/homeassistant/auth/mfa_modules/__init__.py", line 10, in <modu
le>
    from homeassistant import data_entry_flow, requirements
  File "/usr/lib/python3.8/site-packages/homeassistant/requirements.py", line 9, in <module>
    import homeassistant.util.package as pkg_util
  File "/usr/lib/python3.8/site-packages/homeassistant/util/package.py", line 11, in <module>
    import pkg_resources
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_w
orking_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 569, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 582, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'cryptography==3.2' distribution was not found and is required by homeassistant

Installing the latest stable homeassistant-min (0.118.5) pulls in a very minor cryptography upgrade (3.2.1) that breaks hass. Downgrading to 0.118.4 then downgrades crypto to 3.2, and hass actually runs. Seems like a simple ebuild fix, that is, if crypto 3.2 actually works. Otherwise, maybe there is functional diff between crypto 3.2.1 and 3.2, thus the reason for the bump. I'm just trying to get HA-min to install for the very first time. Also, I'm running only python-3.8, and have all packages compiled for 3.8 only. After installing 0.118.5: ``` $ hass --help Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master ws.require(__requires__) File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (cryptography 3.2.1 (/usr/lib/python3.8/site-packages), Requir ement.parse('cryptography==3.2'), {'homeassistant'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python-exec/python3.8/hass", line 33, in <module> sys.exit(load_entry_point('homeassistant==0.118.5', 'console_scripts', 'hass')()) File "/usr/lib/python3.8/site-packages/homeassistant/__main__.py", line 278, in main args = get_arguments() File "/usr/lib/python3.8/site-packages/homeassistant/__main__.py", line 60, in get_arguments import homeassistant.config as config_util File "/usr/lib/python3.8/site-packages/homeassistant/config.py", line 14, in <module> from homeassistant import auth File "/usr/lib/python3.8/site-packages/homeassistant/auth/__init__.py", line 16, in <module> from .mfa_modules import MultiFactorAuthModule, auth_mfa_module_from_config File "/usr/lib/python3.8/site-packages/homeassistant/auth/mfa_modules/__init__.py", line 10, in <modu le> from homeassistant import data_entry_flow, requirements File "/usr/lib/python3.8/site-packages/homeassistant/requirements.py", line 9, in <module> import homeassistant.util.package as pkg_util File "/usr/lib/python3.8/site-packages/homeassistant/util/package.py", line 11, in <module> import pkg_resources File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3239, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_w orking_set working_set = WorkingSet._build_master() File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 569, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 582, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 770, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'cryptography==3.2' distribution was not found and is required by homeassistant ```
onkelbeh self-assigned this 2020-12-14 23:14:03 +01:00
onkelbeh added the
Bug
label 2020-12-14 23:14:10 +01:00
Owner

fixed in 5739ffd74e, thanks for reporting.

fixed in https://git.edevau.net/onkelbeh/HomeAssistantRepository/commit/5739ffd74eddfb16fd1bdbcefdb6632ef5de2703, thanks for reporting.
Owner

just fixed the error in the build script.

just fixed the error in the build script.
Sign in to join this conversation.
No Label
Bug
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: onkelbeh/HomeAssistantRepository#192
No description provided.