home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.78k stars 30.88k forks source link

Task Install all Requirements. Conflict caused by aiohttp #61025

Closed staszekj closed 2 years ago

staszekj commented 2 years ago

The problem

Hi, Windows, dev branch, VSCode, fresh built devCcontainer. In VSCode I run task: Install all Requirements

got error:

The conflict is caused by:
    The user requested aiohttp
    accuweather 0.3.0 depends on aiohttp
    adax 0.2.0 depends on aiohttp>=3.0.6
    adguardhome 0.5.0 depends on aiohttp>=3.0.0
    advantage-air 0.2.5 depends on aiohttp
    afsapi 0.0.4 depends on aiohttp>=3.3.2
    aio-geojson-geonetnz-quakes 0.13 depends on aiohttp<4 and >=3.7.4
    aio-geojson-geonetnz-volcano 0.6 depends on aiohttp<4 and >=3.7.4
    aio-geojson-nsw-rfs-incidents 0.4 depends on aiohttp<4 and >=3.7.4
    aioambient 2021.11.0 depends on aiohttp<4.0.0 and >=3.7.4
    aioazuredevops 1.3.5 depends on aiohttp>=3.6.2
    aiobotocore 1.2.2 depends on aiohttp>=3.3.1
    aioeafm 0.1.2 depends on aiohttp<4.0.0 and >=3.6.1
    aioeagle 1.1.0 depends on aiohttp
    aioemonitor 1.0.5 depends on aiohttp>=3.7.0
    aioflo 2021.11.0 depends on aiohttp<4.0.0 and >=3.7.4
    aiogithubapi 21.11.0 depends on aiohttp<4.0 and >=3.6.1
    aioguardian 2021.11.0 depends on aiohttp<4.0.0 and >=3.7.4post0
    aioharmony 0.2.8 depends on aiohttp
    aiohttp-cors 0.7.0 depends on aiohttp>=1.1
    aiohue 3.0.1 depends on aiohttp
    aiolookin 0.0.4 depends on aiohttp>=3.7.4
    aiolyric 1.0.8 depends on aiohttp>=3.7.3
    aiomodernforms 0.1.8 depends on aiohttp>=3.0.0
    aiomusiccast 0.14.2 depends on aiohttp<4.0.0 and >=3.7.4
    aionanoleaf 0.1.1 depends on aiohttp
    aionotion 3.0.2 depends on aiohttp<4.0.0 and >=3.7.4
    aiopvapi 1.6.14 depends on aiohttp<4 and >=3
    aiopvpc 2.2.4 depends on aiohttp>=3.7.4.post0
    aiorecollect 1.0.8 depends on aiohttp<4.0.0 and >=3.7.4
    aioridwell 0.2.0 depends on aiohttp<4.0.0 and >=3.7.4
    aioshelly 1.0.5 depends on aiohttp
    aiosyncthing 0.5.1 depends on aiohttp>=3.7.4
    aiotractive 0.5.2 depends on aiohttp>=3.7.4
    aiounifi 28 depends on aiohttp
    aiowatttime 0.1.1 depends on aiohttp<4.0.0 and >=3.7.4
    aioymaps 1.2.1 depends on aiohttp>=3.0.0
    airly 1.1.0 depends on aiohttp>=3.5.4
    airthings-cloud 0.1.0 depends on aiohttp>=3.0.6
    alpha-vantage 2.3.1 depends on aiohttp
    ambee 0.4.0 depends on aiohttp>=3.0.0
    ambiclimate 0.2.1 depends on aiohttp>=3.0.6
    asmog 0.0.6 depends on aiohttp
    async-upnp-client 0.22.12 depends on aiohttp>=3.7.4
    asyncpysupla 0.0.5 depends on aiohttp
    blebox-uniapi 1.3.3 depends on aiohttp>=3
    bond-api 0.1.15 depends on aiohttp>=3.6.1
    brunt 1.0.0 depends on aiohttp
    bsblan 0.4.0 depends on aiohttp>=3.0.0
    connect-box 0.2.8 depends on aiohttp
    coronavirus 1.1.1 depends on aiohttp>=3.0.0
    crownstone-cloud 1.4.9 depends on aiohttp~=3.7
    crownstone-sse 2.0.3 depends on aiohttp~=3.7
    directv 0.4.0 depends on aiohttp>=3.6.2
    discord-py 1.7.3 depends on aiohttp<3.8.0 and >=3.6.0
    The user requested (constraint) aiohttp==3.8.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
The terminal process "bash '-c', 'pip3 install -r requirements_all.txt'" terminated with exit code: 1.

Press any key to close the terminal. 

What version of Home Assistant Core has the issue?

dev branch

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

No response

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

frenck commented 2 years ago

Seems like, for some reason the dev container uses an incorrect pip version. We require an older pip version.

staszekj commented 2 years ago

Problem root cause was:

After repo cloning I ran in VSCode Remote-Containers: Rebuild and Reopen in Container

then I selected Python3 from the list and that was the main mistake.

How I solved the problem ?

  1. with VSCode docker extention I removed container vsc-dev...
  2. with VSCode docker extention I removed image vsc-dev...
  3. with Windows File Explorer I removed .devContainer directory that was created beyound core directory

then

  1. I reopen the core directory with Windows File Explorer (right click -> open in VSCode)
  2. in VSCode -> Remote-Containers: Reopen in Container
  3. in VSCode -> Tasks: Run task -> Run Home Assistant Core

web page: localhost:8123 works now :-)

Now in container log I see

WARNING: You are using pip version 20.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' com

but this is as it should be.

@frenck for for advice :-)

The-Compiler commented 2 years ago

FWIW if someone runs into the same error when trying to run tox in this repo: You will need the tox-pip-version plugin so that tox installs an older pip.