Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev container fails to setup due to charset-normalizer dependency #74069

Closed
oliv3r opened this issue Jun 27, 2022 · 2 comments · Fixed by #74104
Closed

Dev container fails to setup due to charset-normalizer dependency #74069

oliv3r opened this issue Jun 27, 2022 · 2 comments · Fixed by #74104

Comments

@oliv3r
Copy link
Contributor

oliv3r commented Jun 27, 2022

The problem

Running the setup script (in the python3.9 dev container) causes the following crash (after announcing everything was fine).

Successfully installed homeassistant
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the '/workdir/venv/bin/python3 -m pip install --upgrade pip' command.
Traceback (most recent call last):
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (charset-normalizer 2.1.0 (/workdir/venv/lib/python3.9/site-packages), Requirement.parse('charset-normalizer~=2.0.0'), {'requests'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workdir/venv/bin/hass", line 33, in <module>
    sys.exit(load_entry_point('homeassistant', 'console_scripts', 'hass')())
  File "/workdir/homeassistant/__main__.py", line 159, in main
    args = get_arguments()
  File "/workdir/homeassistant/__main__.py", line 69, in get_arguments
    from . import config as config_util
  File "/workdir/homeassistant/config.py", line 19, in <module>
    from . import auth
  File "/workdir/homeassistant/auth/__init__.py", line 19, in <module>
    from .mfa_modules import MultiFactorAuthModule, auth_mfa_module_from_config
  File "/workdir/homeassistant/auth/mfa_modules/__init__.py", line 12, in <module>
    from homeassistant import data_entry_flow, requirements
  File "/workdir/homeassistant/requirements.py", line 14, in <module>
    from .util import package as pkg_util
  File "/workdir/homeassistant/util/package.py", line 13, in <module>
    import pkg_resources
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/workdir/venv/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'charset-normalizer~=2.0.0' distribution was not found and is required by requests

charset-normalizer was bumped to 2.1.0 2 weeks ago.

What version of Home Assistant Core has the issue?

core-dev-84ea8a3c43

What was the last working version of Home Assistant Core?

A couple of weeks back, most probably before the bump

What type of installation are you running?

Home Assistant Container

Integration causing the issue

none

Link to integration documentation on our website

none

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

This is just after loading up a freshly built dev-container, and running script/setup.

I checked the repo itself (git grep) but couldn't find the dependency in anywhere, so this must be a dependency of a dependency ...

@al-one
Copy link

al-one commented Jun 28, 2022

@ludeeus
Copy link
Member

ludeeus commented Jun 28, 2022

Looks to be related to psf/requests#6169

@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants