Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64508 - [home-assistant] hass is not starting after update

Attached to Project: Community Packages
Opened by jano (jancici) - Friday, 15 November 2019, 09:07 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 18 November 2019, 00:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

I did run update on my server and I see a lot of python packages begin update. And there was also hass update.
I have home-assistant 0.101.3-2 now. But it is not starting and this is in journal:

systemd[1]: Started Home assistant.
hass[816]: Traceback (most recent call last):
hass[816]: File "/usr/bin/hass", line 6, in <module>
hass[816]: from pkg_resources import load_entry_point
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in <module>
hass[816]: def _initialize_master_working_set():
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
hass[816]: f(*args, **kwargs)
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
hass[816]: working_set = WorkingSet._build_master()
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
hass[816]: ws.require(__requires__)
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
hass[816]: needed = self.resolve(parse_requirements(requirements))
hass[816]: File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
hass[816]: raise DistributionNotFound(req, requirers)
hass[816]: pkg_resources.DistributionNotFound: The 'homeassistant==0.101.3' distribution was not found and is required by the application
systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE


This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 18 November 2019, 00:49 GMT
Reason for closing:  Fixed
Additional comments about closing:  home-assistant 0.101.3-3
Comment by Björn Heide (shardik) - Friday, 15 November 2019, 19:15 GMT
Version 0.100.2-2 was rebuild for python 3.8 while version 0.101.3-2 was build for python 3.7 again. So a new rebuild for python 3.8 is needed.
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 08:36 GMT
ouch... installing Python 3.7 (from AUR) now to see if I can get it back up and running by changing the shebang in /usr/bin/hass
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 11:37 GMT
Well -- this is more of an issue than I thought! Building python 3.7 from AUR takes hours (on this small box). Downgrading to the package python-3.7.4-2-x86_64.pkg.tar.xz works but does not help. I now get:

Nov 17 12:35:38 piggy systemd[1]: Started Home assistant.
Nov 17 12:35:38 piggy hass[22328]: Traceback (most recent call last):
Nov 17 12:35:38 piggy hass[22328]: File "/usr/bin/hass", line 6, in <module>
Nov 17 12:35:38 piggy hass[22328]: from pkg_resources import load_entry_point
Nov 17 12:35:38 piggy hass[22328]: ModuleNotFoundError: No module named 'pkg_resources'
Nov 17 12:35:38 piggy systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 17 12:35:38 piggy systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 12:18 GMT
Downgrading the 80 odd python packages that got upgraded this morning
Comment by Achilleas (achilleas) - Sunday, 17 November 2019, 12:33 GMT
What's the point of installing all this py3.7 stuff to get this packaged version of home-assistant to work? Isn't the issue (and solution) that the home-assistant should be packaged for 3.8?
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 12:49 GMT
Now back to 0.100.2 -- and the house is getting back. Especially the heating is a big relief to have up and running again :)
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 15:06 GMT
But, of course, the solution is to package against 3.8... Waiting for that. In the mean time I still need heating :-)
Comment by Achilleas (achilleas) - Sunday, 17 November 2019, 15:09 GMT
Right, I should have mentioned: Downgrading to 0.100.2-2 works with Py3.8 without hassle (see first comment).
Comment by Willem van Asperen (wasperen) - Sunday, 17 November 2019, 15:21 GMT
Actually... Not for me. Bunch of dependencies for 3.7 are no longer available. So had to downgrade all of those to get back to a functioning 3.7 install with 3.7 dependencies...
Comment by Eli Schwartz (eschwartz) - Monday, 18 November 2019, 00:48 GMT
Well, in the meantime I've just bumped the pkgrel and rebuilt the package using python 3.8, so there should be no problem...

Loading...