FS#69411 - [home-assistant] requires pip < 20.3

Attached to Project: Community Packages
Opened by Christoph Haag (haagch) - Saturday, 23 January 2021, 03:20 GMT
Last edited by Maxime Gauduin (Alucryd) - Wednesday, 14 April 2021, 16:50 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 17
Private No

Details

https://github.com/home-assistant/core/pull/43771

Currently arch has python-pip 20.3-1

Restarting home-assistant after an update loops forever with the message

pkg_resources.DistributionNotFound: The 'pip<20.3,>=8.0.3' distribution was not found and is required by homeassistant

Downgrading to python-pip-20.2.4-1 helps for now.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Wednesday, 14 April 2021, 16:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  2021.4.4-1
Comment by Justin Kim (joykim) - Saturday, 23 January 2021, 17:27 GMT
Or, it works for me when letting it use arch's pip by removing limitation in `prepare()` statement.

> sed 's/,<20.3//g' -i setup.py requirements.txt homeassistant/package_constraints.txt
Comment by KriK (krik) - Tuesday, 26 January 2021, 14:52 GMT
Same problem.
Comment by Karsten (Smokie) - Wednesday, 27 January 2021, 21:09 GMT
same here
Comment by Christoph Haag (haagch) - Wednesday, 27 January 2021, 21:19 GMT Comment by Sefa Eyeoglu (Scrumplex) - Thursday, 28 January 2021, 09:55 GMT
Here is my issue report, as I don't want to create a duplicate report:


Description:
I updated my Home-Assistant installation today (2021/01/28) and it looks like it can't start anymore, as the installed pip version (which was updated a day after the home-assistant package) is too new.

According to upstream this won't ne resolved anytime soon.


Additional info:
* package version(s)
python-pip 20.3.1-1
home-assistant 2021.1.5-1

* config and/or log files etc.
# journalctl -eu home-assistant.service
...
Jan 28 10:51:29 hass hass[9044]: pkg_resources.DistributionNotFound: The 'pip<20.3,>=8.0.3' distribution was not found and is required by homeassistant


* link to upstream bug report, if any
https://github.com/home-assistant/core/issues/45444


Steps to reproduce:
Start home-assistant.service
Comment by Kiriakos Krastillis (justforgetme) - Wednesday, 03 February 2021, 03:40 GMT
Hi there,

from what I gather from the gh issue discussion this doesn't have an imminent upstream fix.

I've created a patch and added it to the PKGBUILD on my fork of the community repo. Commit can be seen here:
https://github.com/kiriakos/svntogit-community/commit/99ff08feabdf5956d4ab113473a053e5d7d05bfb

That PKGBUILD runs flawlessly for me. I'm aware that the way I apply the patch is different to the other mechanism, I'm happy to discuss what makes sense here. I think we will have to implement some sort of stopgap measure for now right? Happy to help!
Comment by Maxime Gauduin (Alucryd) - Wednesday, 03 February 2021, 08:35 GMT
Sorry about the delay, and thanks for the various input (not the "same here" mind you, thought arch was above that...). I went the sed way since I already had one in place, and having maintained this for a while, I know a patch would need rebasing with almost every release, something so trivial is better done with sed. Please let me know how the new package fairs.
Comment by jano (jancici) - Wednesday, 10 February 2021, 19:12 GMT
sorry, maybe I am asking wrong question.
your update / patch is still not in community repository. how long do we need wait?
thanks

Loading...