Discovering HA, problem after installation

Hello.
I have no idea about Python and this world, but I love reading and reading about it.
After installing everything (I use my computer with Windows 10) I have found my first problem.

Invalid Config
The following components and platforms could not be set up:

  • discovery
    Please check your config
    DISMISS

What should I do?
Thanks!

home-assistant.log (in your base config folder) may have a more-verbose error. You may need to manually install some dependencies on Windows.

How can I solve it?
Thank you!

Start by looking for the error in home-assistant.log. Post it here and we’ll see if we can figure it out.

1 Like

Hi, I post here the text in home-assistant.log. Thank you for your help.

2017-07-04 08:54:39 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=3 from 2017-07-03 16:03:34.930637)
2017-07-04 08:54:46 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package netdisco==1.0.1: Command “C:\Users\luisl\AppData\Local\Programs\Python\Python36\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\luisl\AppData\Local\Temp\pip-build-jdi7vb4b\netifaces\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\luisl\AppData\Local\Temp\pip-6lpthar5-record\install-record.txt --single-version-externally-managed --compile --home=C:\Users\luisl\AppData\Local\Temp\tmpwsjvglmt” failed with error code 1 in C:\Users\luisl\AppData\Local\Temp\pip-build-jdi7vb4b\netifaces
2017-07-04 08:54:46 ERROR (MainThread) [homeassistant.setup] Not initializing discovery because could not install dependency netdisco==1.0.1
2017-07-04 08:54:46 ERROR (MainThread) [homeassistant.setup] Setup failed for discovery: Could not install all requirements.
2017-07-04 08:54:46 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…op_reading()]>)
Traceback (most recent call last):
File “C:\Users\luisl\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Users\luisl\AppData\Local\Programs\Python\Python36\lib\asyncio\proactor_events.py”, line 190, in _loop_reading
data = fut.result() # deliver data later in “finally” clause
File “C:\Users\luisl\AppData\Local\Programs\Python\Python36\lib\asyncio\futures.py”, line 238, in result
raise InvalidStateError(‘Result is not ready.’)
asyncio.base_futures.InvalidStateError: Result is not ready.
2017-07-04 08:55:02 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback _ProactorReadPipeTransport._loop_reading(<_OverlappedF…ed result=b’’>)
Traceback (most recent call last):
File “C:\Users\luisl\AppData\Local\Programs\Python\Python36\lib\asyncio\events.py”, line 127, in _run
self._callback(*self._args)
File “C:\Users\luisl\AppData\Local\Programs\Python\Python36\lib\asyncio\proactor_events.py”, line 188, in _loop_reading
self._closing)
AssertionError

Yeah - it says you need netdisco. Not sure how to install that for windows. Do a forum search.

1 Like

I almost managed to install netdisco, but… there I got another error.

C:\Users\luisl>pip3 install netdisco
Collecting netdisco
Using cached netdisco-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: requests>=2.0 in c:\users\luisl\appdata\local\programs\python\python36\lib\site-packages (from netdisco)
Collecting zeroconf==0.19 (from netdisco)
Using cached zeroconf-0.19.0-py2.py3-none-any.whl
Collecting netifaces<=0.10.4 (from zeroconf==0.19->netdisco)
Using cached netifaces-0.10.4.tar.gz
Requirement already satisfied: enum-compat in c:\users\luisl\appdata\local\programs\python\python36\lib\site-packages (from zeroconf==0.19->netdisco)
Requirement already satisfied: six in c:\users\luisl\appdata\local\programs\python\python36\lib\site-packages (from zeroconf==0.19->netdisco)
Installing collected packages: netifaces, zeroconf, netdisco
Running setup.py install for netifaces … error
Complete output from command c:\users\luisl\appdata\local\programs\python\python36\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\luisl\AppData\Local\Temp\pip-build-d3ves6z2\netifaces\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\luisl\AppData\Local\Temp\pip-xwc9_qfv-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building ‘netifaces’ extension
creating build
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.10.4 -Ic:\users\luisl\appdata\local\programs\python\python36\include -Ic:\users\luisl\appdata\local\programs\python\python36\include “-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt” /Tcnetifaces.c /Fobuild\temp.win-amd64-3.6\Release\netifaces.obj
netifaces.c
c:\users\luisl\appdata\local\programs\python\python36\include\pyconfig.h(222): fatal error C1083: Cannot open include file: ‘basetsd.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe’ failed with exit status 2

----------------------------------------

Command “c:\users\luisl\appdata\local\programs\python\python36\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\luisl\AppData\Local\Temp\pip-build-d3ves6z2\netifaces\setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record C:\Users\luisl\AppData\Local\Temp\pip-xwc9_qfv-record\install-record.txt --single-version-externally-managed --compile” failed with error code 1 in C:\Users\luisl\AppData\Local\Temp\pip-build-d3ves6z2\netifaces\

Not my strong suit here, but a guess: is your python environment set up correctly? Are you using 3.6?

To your initial issue - I’m not a Linux/Python person either, but deploying on a Raspberry Pi is cheap and easy. There are lots of easy to follow tutorials. Take a look at the Bruh Automation vids on YouTube. I went this route since it’s the most-popular, thus the easiest to get assistance with when you get stuck. Also, closest to the development platform.

see also:

1 Like