Hi after some fuzzing around and having to install Python and Microsoft C++ development tools, I finally got Home Assistant to install cleanly (as in without errors). Except that is for this final warning.
WARNING: The script hass.exe is installed in 'C:\Users\~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
I’m really sorry and I did search the forum for the full warning, but my search came up blank, but how do I do what it’s asking me to do? In Other words, how do I add hass.exe to my path like it wants me to do?
I did mess about with Linux a lot several years ago, but I have since forgotten almost everything. I know this is windows and this is different, but I’m guessing the solution is really simple? Basically somehow I just need to add this executable to my path so that python can find it?
Of course when I try to run Home assistant with the command py -m homeassistant --open-ui python can’t find it. I’ve tried variations on this command, like removing the extra -.
But with the same result.
\AppData\Local\Programs\Python\Python38\python.exe: No module named homeassistant
Sorry for the total n00b question. Please be patient and gentle with me.
Edit I found the executable mentioned in the error and tried to run it (double click) and it just spat out a whole bunch of other errors, as in:
Unable to find configuration. Creating default one in C:\Users\George\AppData\Roaming\.homeassistant
2020-09-24 20:31:12 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Unable to import component: No module named 'sqlalchemy'
2020-09-24 20:31:20 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
Traceback (most recent call last):
File "C:\Users\George\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\homeassistant\setup.py", line 213, in _async_setup_component
result = await task
File "C:\Users\George\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\homeassistant\components\http\__init__.py", line 209, in async_setup
server = HomeAssistantHTTP(
File "C:\Users\George\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\homeassistant\components\http\__init__.py", line 312, in __init__
setup_cors(app, cors_origins)
File "C:\Users\George\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\homeassistant\components\http\cors.py", line 26, in setup_cors
import aiohttp_cors
ModuleNotFoundError: No module named 'aiohttp_cors'
2020-09-24 20:31:20 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_log. Setup failed for dependencies: http
2020-09-24 20:31:20 ERROR (MainThread) [homeassistant.setup] Setup failed for system_log: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for api: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for config: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for image: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for search: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook, alexa
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for person: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: auth, http, person
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: Could not set up all dependencies.
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, http, onboarding, search, system_log, websocket_api
2020-09-24 20:31:21 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for updater: Unable to import component: No module named 'distro'
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_source. Setup failed for dependencies: http
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for media_source: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for map: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: api
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http, recorder
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for history: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: Could not set up all dependencies.
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, http, recorder
2020-09-24 20:31:26 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not set up all dependencies.
2020-09-24 20:31:34 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: Unable to import component: No module named 'defusedxml'