I’m having issues with my Chromecast and was wondering if anyone can give me some pointers on what might be wrong.
Not initializing media_player.cast because could not install dependency pychromecast==0.7.6
INFO:homeassistant.util.package:Attempting install of pychromecast==0.7.6
Command “C:\Users\jhuan\AppData\Local\Programs\Python\Python36-32\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\jhuan\AppData\Local\Temp\pip-build-z6o4jeyv\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\jhuan\AppData\Local\Temp\pip-tyzz_opl-record\install-record.txt --single-version-externally-managed --compile --home=C:\Users\jhuan\AppData\Local\Temp\tmpq2eg5bvu” failed with error code 1 in C:\Users\jhuan\AppData\Local\Temp\pip-build-z6o4jeyv\netifaces
ERROR:homeassistant.bootstrap:Not initializing media_player.cast because could not install dependency pychromecast==0.7.6
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:
media_player.cast
Please check your config, notification_id=invalid_config, service_call_id=68486384-1>
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=The following components and platforms could not be set up:
Sorry - had the C++ redistributable instead of the build tools installed. After installed the build tools from the link you sent, I’m now getting the following error message when installed chromecast:
Collecting pychromecast
Using cached PyChromecast-0.7.7-py2.py3-none-any.whl
Requirement already satisfied: six>=1.10.0 in c:\users\jhuan\appdata\local\programs\python\python36-32\lib\site-packages (from pychromecast)
Requirement already satisfied: requests>=2.0 in c:\users\jhuan\appdata\local\programs\python\python36-32\lib\site-packages (from pychromecast)
Collecting zeroconf>=0.17.4 (from pychromecast)
Using cached zeroconf-0.17.6-py2.py3-none-any.whl
Requirement already satisfied: protobuf==3.0.0b2 in c:\users\jhuan\appdata\local\programs\python\python36-32\lib\site-packages (from pychromecast)
Collecting netifaces (from zeroconf>=0.17.4->pychromecast)
Using cached netifaces-0.10.5.tar.gz
Requirement already satisfied: enum-compat in c:\users\jhuan\appdata\local\programs\python\python36-32\lib\site-packages (from zeroconf>=0.17.4->pychromecast)
Requirement already satisfied: setuptools in c:\users\jhuan\appdata\local\programs\python\python36-32\lib\site-packages (from protobuf==3.0.0b2->pychromecast)
Installing collected packages: netifaces, zeroconf, pychromecast
Running setup.py install for netifaces … error
Complete output from command C:\Users\jhuan\AppData\Local\Programs\Python\Python36-32\python.exe -u -c “import setuptools, tokenize;file=‘C:\Users\jhuan\AppData\Local\Temp\pip-build-9_q9yj17\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\jhuan\AppData\Local\Temp\pip-vxamjutl-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building ‘netifaces’ extension
creating build
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.10.5 -IC:\Users\jhuan\AppData\Local\Programs\Python\Python36-32\include -IC:\Users\jhuan\AppData\Local\Programs\Python\Python36-32\include “-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE” “-IM:\Installs\Windows Kits\10\include\wdf\ucrt” “-IC:\Program Files (x86)\Windows Kits\8.1\include\shared” “-IC:\Program Files (x86)\Windows Kits\8.1\include\um” “-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt” /Tcnetifaces.c /Fobuild\temp.win32-3.6\Release\netifaces.obj
netifaces.c
c:\users\jhuan\appdata\local\programs\python\python36-32\include\pyconfig.h(59): fatal error C1083: Cannot open include file: ‘io.h’: No such file or directory
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe’ failed with exit status 2
Do you happen to have VS installed? Or have you had it installed at any point? The error that’s getting you is "Cannot open include file: 'io.h': No such file or directory"
Could you check the directory (C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE) for this file? You could force it by finding io.h and putting it in that folder, but it wouldn’t necessarily solve your problem in the long term (if you want to do more C compilations in the future it may require you grab more .h files.)