Unable to install

HI Dominique,

Were u able to go past this issue?
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/bin/hass”, line 11, in
sys.exit(main())
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/main.py”, line 359, in main
monkey_patch_asyncio()
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/main.py”, line 58, in monkey_patch_asyncio
asyncio.tasks.Task._all_tasks = IgnoreCalls()
TypeError: can’t set attributes of built-in/extension type ‘_asyncio.Task’

i did a clean install of python3 and HA (on macos sierra), but i also get the error mentioned above. what i did to be able to start hass was to uncomment line 58 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/__main__.py

this way HA starts up fine.

i know it’s not the right way, but a strong indication that it’s not a faulty python3 install, but rather an HA (or monkey-patch) incompatibility in certain environments (macos, windows?).

1 Like

Hi @diplix, thanks for pointing this out.

@rookie57 Maybe this also helps you.

I have installed python 3.6.0 and looks like the supposed bug in pyhton 3.6 has been solved. So, I just commented out line 359 like this:
###BF monkey_patch_asyncio()
To remove that patch, as suggested on that file comments:

“On Python 3.6, after the bug is fixed, this monkey-patch can be disabled.”

1 Like

Thanks guys! this solved my issues too!