Installation issue on Windows Home Server (Python 3.7)

Hi,

I am a total newbie to HomeAssistant. I Installed Python (3.7 x64) and HomeAssistant following the instructions (although there aren’t any instructions on which configuration options, paths etc to choose during Python install) found on https://home-assistant.io/docs/installation/windows/. No errors are logged, all depencies installed. When I try to run C:…> py -m homeassistant --open-ui this error is all that is emitted:

C:\>py -m homeassistant --open-ui
Traceback (most recent call last):
  File "C:\Python37\lib\runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Python37\lib\runpy.py", line 142, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Python37\lib\runpy.py", line 153, in _get_module_details
    code = loader.get_code(mod_name)
  File "<frozen importlib._bootstrap_external>", line 855, in get_code
  File "<frozen importlib._bootstrap_external>", line 786, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Python37\lib\site-packages\homeassistant\__main__.py", line 279
    from homeassistant.util.async import run_callback_threadsafe
                                ^
SyntaxError: invalid syntax

I am lost, anybody was successful with HA on WHS 2011?

Wolfgang

Python 3.7 is still an Alpha release, not even stable enough to be classified as a Beta. If you want to run it, it’s up to you to diagnose issues and resolve them.

Install a stable version of Python (3.6.4 or 3.5.4) and try again.

1 Like

Thanks a lot! I was not aware that 3.7 was an alpha release, everything worked like a charm with 3.6.4 x32 after getting the discovery installation issue solved as indicted in the documentation…

Python 3.7.0a4 is the last of four planned alpha releases (from the front page)

The key is in the letter a - most software packages use a to indicate an alpha release, and b for a beta. The other hint is that Python 3.7 isn’t listed in the release page, and if you visit the page for the 3.7 source download it says:

This is an early developer preview of Python 3.7

You’re not the only person to make that mistake, but hopefully this will help the next person.

Yes, it would be nice to mention that on the iwindows installation page https://home-assistant.io/docs/installation/windows/. This page contains a link to https://www.python.org/downloads/windows/, which only lists the availabe releases, no info about alpha status. And I just picked the most recent version from there, which happened to be 3.7.0.a4

But, all is good, thanks for the support!

I’ve submitted an update for the HA docs to hopefully help others.

Nothing I can do about Python’s own docs sadly :wink:

1 Like

Great update on the HA docs, should be helpful to newbies like me :slight_smile: