Mark-81
(Mark 81)
November 2, 2019, 6:24pm
1
I get this error:
2019-11-02 19:22:02 INFO (SyncWorker_10) [homeassistant.util.package] Attempting install of av==6.1.2
2019-11-02 19:22:11 ERROR (SyncWorker_10) [homeassistant.util.package] Unable to install package av==6.1.2: Failed building wheel for av
2019-11-02 19:22:11 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Requirements for stream not found: [‘av==6.1.2’].
but I’ve already installed a newer version inside the virtualenv:
pip3 install av
[...]
Installing collected packages: av
Running setup.py install for av ... done
Successfully installed av-6.2.0
Why it doesn’t find it?
I’m getting a very similar error since updating to v0.101.2:
Testing configuration at /srv/homeassistant/pifour_hass/config
INFO:homeassistant.util.package:Attempting install of av==6.1.2
ERROR:homeassistant.util.package:Unable to install package av==6.1.2: Failed building wheel for av
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-yonm4rpl/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 /tmp/pip-record-2sjgc03k/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av" failed with error code 1 in /tmp/pip-install-yonm4rpl/av/
Failed config
Running under VENV, if you manage to fix it please let me know, I’ve had to disable my camera for now.
e_jp
(Jean-Philippe Vert)
November 10, 2019, 8:34pm
4
same issue here under 101.3
Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: av
Running setup.py install for av ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b55gjnz3/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 /tmp/pip-record-zxdowv5l/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/av
copying av/__init__.py -> build/lib.linux-armv7l-3.7/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.7/av
copying av/datasets.py -> build/lib.linux-armv7l-3.7/av
copying av/__main__.py -> build/lib.linux-armv7l-3.7/av
creating build/lib.linux-armv7l-3.7/av/video
copying av/video/__init__.py -> build/lib.linux-armv7l-3.7/av/video
creating build/lib.linux-armv7l-3.7/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.7/av/container
creating build/lib.linux-armv7l-3.7/av/codec
copying av/codec/__init__.py -> build/lib.linux-armv7l-3.7/av/codec
creating build/lib.linux-armv7l-3.7/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.7/av/subtitles
creating build/lib.linux-armv7l-3.7/av/filter
copying av/filter/__init__.py -> build/lib.linux-armv7l-3.7/av/filter
creating build/lib.linux-armv7l-3.7/av/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.7/av/audio
creating build/lib.linux-armv7l-3.7/av/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.7/av/data
running build_ext
running config
Could not find libavformat with pkg-config.
Could not find libavcodec with pkg-config.
Could not find libavdevice with pkg-config.
Could not find libavutil with pkg-config.
Could not find libavfilter with pkg-config.
Could not find libswscale with pkg-config.
Could not find libswresample with pkg-config.
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b55gjnz3/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 /tmp/pip-record-zxdowv5l/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-b55gjnz3/av/
clyra
(Clyra)
November 12, 2019, 11:59am
5
Hi,
Same here, but solved by installing the dependencies packages:
apt-get install libavformat-dev libavdevice-dev
I may have forgoten one package…
9 Likes
Same here, but solved by installing the dependencies packages:
What OS are you running please? And how did you know what packages to install?
clyra
(Clyra)
November 12, 2019, 12:12pm
7
Debian here (ubuntu should be the same). The packages was listed on the pip output:
Could not find libavformat with pkg-config.
Could not find libavcodec with pkg-config.
Could not find libavdevice with pkg-config.
Could not find libavutil with pkg-config.
Could not find libavfilter with pkg-config.
Could not find libswscale with pkg-config.
Could not find libswresample with pkg-config.
Since pip was trying to compile the av module you will need the “-dev” packages too. Apt-get will install more packages as they are needed by the two ones that I listed.
1 Like
Ok, thanks, I’l try installing those. I’m using Raspbian which is also debian based so hopefully I’ll be able to fix this error.
e_jp
(Jean-Philippe Vert)
November 12, 2019, 9:13pm
9
Thank you very much, this made the trick. It was super long to install but in the end it worked.
Jer78
(Jeremy Percival)
November 13, 2019, 2:19am
10
Anyone figure this out using Venv on a Mac?
edit: Figured it out…
brew install pkg-config
pip3 install av==6.1.2
1 Like
RamaSouto
(Ramiro Souto)
December 7, 2019, 5:26am
11
Thanks @Jer78 this worked for me as well!
1 Like
spa46
(Sean.P)
December 19, 2019, 7:41am
12
working after installing the packages
Thanks!!! solved my problem on ubuntu 16.04.
pcb1962
(pcb1962)
November 1, 2020, 6:59pm
14
Thanks @clyra , this solved it for me after python3.8 venv upgrade