tl;dr
downgrade your pip version to 9.0.1 with sudo python3 -m pip install pip==9.0.1
====
Same here with a DS218play
Had a look at the hass-daemon file and tried to run the command in the start section manually without piping the output into the log file.
After also appending the --debug flag i finally got an error message
leschekfm@DiskStation:~$ sudo -u homeassistant /bin/sh -c "/volume1/@appstore/py3k/usr/local/bin/python3 /volume1/@appstore/py3k/usr/local/bin/hass -v --config /volume1/homeassistant --pid-file /volume1/homeassistant/home-assistant.pid --daemon --debug"
Traceback (most recent call last):
File "/volume1/@appstore/py3k/usr/local/bin/hass", line 11, in <module>
sys.exit(main())
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/__main__.py", line 368, in main
exit_code = setup_and_run_hass(config_dir, args)
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/__main__.py", line 247, in setup_and_run_hass
from homeassistant import bootstrap
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/bootstrap.py", line 14, in <module>
from homeassistant import (
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/config_entries.py", line 120, in <module>
from .setup import async_setup_component, async_process_deps_reqs
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/setup.py", line 9, in <module>
from homeassistant import requirements, core, loader, config as conf_util
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/requirements.py", line 7, in <module>
import homeassistant.util.package as pkg_util
File "/volume1/@appstore/py3k/usr/local/lib/python3.5/site-packages/homeassistant/util/package.py", line 10, in <module>
from pip.locations import running_under_virtualenv
ImportError: No module named 'pip.locations'
Apparently pip.locations has been removed with pip version 10 and therefore a more or less recent Diskstation installation is way beyond that (current is pip v18)
Edit:
The usage of pip.locations has been removed some time ago for home assistent in this commit
Sadly this commit included only in home assistent 0.65.0 which requires at least pyhon 3.5.3 according to the changelog which isn’t supported on diskstations atm.
As far as I see the only solution right now is to downgrade pip as mentioned in https://community.home-assistant.io/t/error-after-upgrade-importerror-no-module-named-pip-locations/50633/3
(seems that I can’t link to internal issues…)
Edit2:
Yes the downgrade made the process start properly