I currently run HA on Windows with Python 3.7. When trying to run the stream integration i get the following error. I have ffmpeg 3.2 and visual studio tools 2019 installed
"
copying av\audio_init_.py -> build\lib.win-amd64-3.7\av\audio
creating build\lib.win-amd64-3.7\av\codec
copying av\codec_init_.py -> build\lib.win-amd64-3.7\av\codec
creating build\lib.win-amd64-3.7\av\container
copying av\container_init_.py -> build\lib.win-amd64-3.7\av\container
creating build\lib.win-amd64-3.7\av\data
copying av\data_init_.py -> build\lib.win-amd64-3.7\av\data
creating build\lib.win-amd64-3.7\av\filter
copying av\filter_init_.py -> build\lib.win-amd64-3.7\av\filter
creating build\lib.win-amd64-3.7\av\subtitles
copying av\subtitles_init_.py -> build\lib.win-amd64-3.7\av\subtitles
creating build\lib.win-amd64-3.7\av\video
copying av\video_init_.py -> build\lib.win-amd64-3.7\av\video
running build_ext
running config
writing build\temp.win-amd64-3.7\Release\include\pyav\config.h
running cythonize
building ‘av.buffer’ extension
creating build\temp.win-amd64-3.7\Release\src
creating build\temp.win-amd64-3.7\Release\src\av
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MT -Iinclude -Ic:\users\administrator\desktop\ha\homeassistant\include -Ibuild\temp.win-amd64-3.7\Release\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -Ic:\users\administrator\desktop\ha\homeassistant\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python37\include -Ibuild\temp.win-amd64-3.7\Release\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\include” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt” /Tcsrc\av\buffer.c /Fobuild\temp.win-amd64-3.7\Release\src\av\buffer.obj
buffer.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /nodefaultlib:libucrt.lib ucrt.lib /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:c:\users\administrator\desktop\ha\homeassistant\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37 /LIBPATH:c:\users\administrator\desktop\ha\homeassistant\PCbuild\amd64 /LIBPATH:c:\users\administrator\desktop\ha\homeassistant\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37\libs /LIBPATH:C:\Users\Administrator\AppData\Local\Programs\Python\Python37 /LIBPATH:c:\users\administrator\desktop\ha\homeassistant\PCbuild\amd64 “/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\lib\x64” “/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64” “/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64” avdevice.lib avutil.lib swscale.lib swresample.lib avformat.lib avcodec.lib avfilter.lib /EXPORT:PyInit_buffer build\temp.win-amd64-3.7\Release\src\av\buffer.obj /OUT:build\lib.win-amd64-3.7\av\buffer.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\src\av\buffer.cp37-win_amd64.lib /OPT:NOREF
LINK : fatal error LNK1181: cannot open input file ‘avdevice.lib’
error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x64\link.exe’ failed with exit status 1181
----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:\users\administrator\desktop\ha\homeassistant\scripts\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\ADMINI~1\AppData\Local\Temp\1\pip-install-obq0nlxu\av\setup.py’"’"’; file=’"’"‘C:\Users\ADMINI~1\AppData\Local\Temp\1\pip-install-obq0nlxu\av\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\ADMINI~1\AppData\Local\Temp\1\pip-record-8zfz6xee\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘c:\users\administrator\desktop\ha\homeassistant\include\site\python3.7\av’ Check the logs for full command output.
2019-08-09 09:34:05 ERROR (MainThread) [homeassistant.requirements] Not initializing stream because could not install requirement av==6.1.2
2019-08-09 09:34:05 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Could not install all requirements.
"
Any help is much appreciated.
Thanks