Home Assistant release (hass --version
):
Hass version 0.20.3
Hass version 0.21.0
Hass version 0.21.1
Python release (python3 --version
):
Python 3.4.4
Component/platform:
OS: Windows 10 x64
Description of problem:
When trying to run hass I get the following error c:\python34\python.exe: can't open file 'C:\Python34\Scripts\hass': [Errno 2] No such file or directory
using python -m homeassistant
works as expected however.
Expected:
Hass has run for 3-4 months without problems and is fully configured. I don't think it's a configuration or setup problem on my end.
Traceback (if applicable):
None
Previously reported and closed on 2138 but returned on 20.3 and continues on 21.0
I can confirm having the same problem on 21.0 as well.
Try "python -m homeassistant" in the cmd prompt.
@Marauder0408 In my description I've noted that using '''python -m homeassistant''' works as expected. However using hass I get the error for no such file or directory. The issue still exists in 0.21.1
It is something that has to do with packaging of Python projects on Windows and afaik is beyond our control.
@balloob just out of curiosity, why would it stop working suddenly? And is there any difference between hass and python -m homeassistant?
If we knew we could solve it and it wouldn't be an issue
There is no difference
On Mon, Jun 13, 2016, 07:43 geman220 [email protected] wrote:
@balloob https://github.com/balloob just out of curiosity, why would it
stop working suddenly? And is there any difference between hass and python
-m homeassistant?—
You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/2246#issuecomment-225602089,
or mute the thread
https://github.com/notifications/unsubscribe/ABYJ2qdEQwj-LIGNfwv2ks6UbogXSyO_ks5qLWyDgaJpZM4IuiJa
.
Continues in 0.23.1, hass doesn't work python -m homeassistant does.
Win10
This is a problem with 0.24.1 and Python 3.5.2 (32-bit):
C:\Windows\system32>"C:\Program Files (x86)\Python35-32\Scripts\hass.exe"
c:\program files (x86)\python35-32\python.exe: can't open file 'C:\Program Files (x86)\Python35-32\Scripts\hass': [Errno 2] No such file or directory
python -m homeassistant
works, i.e.:
"C:\Program Files (x86)\Python35-32\python" -m homeassistant --open-ui
Windows 8.1, this maybe a Python (setup.py) script issue rather than HA. I've not had much luck with that on Windows (I've found py2exe more reliable).
As there is no more action especially from the reporter, I consider this issue as abandoned.
@fabaff are there any diagnostics that would help progress this?
I'm seeing this with Windows Python MiniConda 3.52 and hass 0.37.0.dev0. currently using python -m homeassistant --open-ui
workaround.
I run into all sorts of road blocks when attempting to install home assistant on Windows with Python 3.6 (such as pycrypto compile errors), which means that the only viable version of Python which can run home assistant in is python 3.5.x. It took a while to hunt all of the required wheels down, but I finally got it all installed, only to run into this error when attempting to run hass
.
I'm very thankful that Marauder0408 posted the command (python -m homeassistant
) to run which gets things up and going on Windows with 3.5.x.
My personal opinion is that this bug should be fixed (or at least the documentation should be updated) before marking this issue as abandoned.
Not being able to run the "hass" command on Windows is a big issue.
Is there some magical solution to getting this all up and running on the latest Python on Windows that I'm missing?
Most helpful comment
Try "python -m homeassistant" in the cmd prompt.