Core: 0.110.2 : STREAM : Unable to install package av==8.0.1: Failed building wheel for av

Created on 25 May 2020  Â·  21Comments  Â·  Source: home-assistant/core

The problem

After installing 0.110.2, an error occured (different from 0.110.1) for Stream component:
"Unable to install package av==8.0.1: Failed building wheel for av"

The error for 0.110.1 was related to av==7.0.1 (similar error but different version of av)

ffmpeg version:
ffmpeg version 4.1.4-1+rpt7~deb10u1

Environment

  • Home Assistant Core release with the issue: 0.110.2
  • Last working Home Assistant Core release (if known): 0.109.6
  • Operating environment (Home Assistant/Supervised/Docker/venv): venv
  • Integration causing this issue:
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml


Traceback/Error logs

2020-05-25 22:18:48 ERROR (SyncWorker_9) [homeassistant.util.package] Unable to install package av==8.0.1: Failed building wheel for av
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wdd7rhjl/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-6zfvi36b/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-wdd7rhjl/av/
2020-05-25 22:18:48 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: Requirements for stream not found: ['av==8.0.1'].

Additional information

stream

Most helpful comment

@hunterjm Thanks... I installed av 8.0.1 manually but some dependencies were missing... So prior installing av with "pip install av" in my venv (I uninstalled the running version from my venv), I ran the following command with pi username :

sudo apt-get install libavformat-dev libavdevice-dev libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev

after that installation of av was successful with "pip install av" ! I have now av 8.0.1 !

All 21 comments

Hey there @hunterjm, mind taking a look at this issue as its been labeled with a integration (stream) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

Me too

By the way, this error at HA startup is preventing to use the "homeassistant.restart" service... I removed "stream:" from my configuration.yaml, and the "restart" service is working again. No error message in home-assistant.log when I try to use the "restart" service when "stream:" is in the configuration.yaml...

Any possibility to install AV 8.0.1 manually in a venv environment ? (venv , Raspberry Pi4, Python 3.7.3) Thanks !

@hunterjm Thanks... I installed av 8.0.1 manually but some dependencies were missing... So prior installing av with "pip install av" in my venv (I uninstalled the running version from my venv), I ran the following command with pi username :

sudo apt-get install libavformat-dev libavdevice-dev libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev

after that installation of av was successful with "pip install av" ! I have now av 8.0.1 !

Glad you've got it resolved! Thanks for letting us know.

(homeassistant) homeassistant@raspberrypi:/home/pi $ pip install av==8.0.1
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av==8.0.1
Using cached av-8.0.1.tar.gz (2.3 MB)
Building wheels for collected packages: av
Building wheel for av (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7msel020/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7msel020/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-mp49ig77
cwd: /tmp/pip-install-7msel020/av/
Complete output (52 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/av
copying av/__main__.py -> build/lib.linux-armv7l-3.7/av
copying av/datasets.py -> build/lib.linux-armv7l-3.7/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.7/av
copying av/__init__.py -> build/lib.linux-armv7l-3.7/av
creating build/lib.linux-armv7l-3.7/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.7/av/sidedata
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/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.7/av/audio
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/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/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.7/av/data
creating build/lib.linux-armv7l-3.7/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.7/av/container
running build_ext
running config
PyAV: 8.0.1 (unknown commit)
Python: 3.7.7 (default, Apr 1 2020, 10:55:29) n[GCC 9.3.0]
platform: Linux-4.19.66-v7+-armv7l-with-debian-bullseye-sid
extension_extra:
include_dirs: [b'include', b'/usr/local/include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: [b'/usr/local/lib']
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.1
PYAV_VERSION_STR="8.0.1"
writing build/temp.linux-armv7l-3.7/include/pyav/config.h
running cythonize
building 'av.descriptor' extension
creating build/temp.linux-armv7l-3.7/src
creating build/temp.linux-armv7l-3.7/src/av
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Iinclude -Ibuild/temp.linux-armv7l-3.7/include -I/usr/include/python3.7m -I/usr/local/include -I/srv/homeassistant/include -I/srv/homeassistant/include -I/usr/include/python3.7m -Ibuild/temp.linux-armv7l-3.7/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.7/src/av/descriptor.o
src/av/descriptor.c:61:10: fatal error: Python.h: No existe el fichero o el directorio
61 | #include "Python.h"
| ^~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


ERROR: Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: av
Attempting uninstall: av
Found existing installation: av 6.1.2
Uninstalling av-6.1.2:
Successfully uninstalled av-6.1.2
Running setup.py install for av ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7msel020/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7msel020/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8e5_7hnf/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av
cwd: /tmp/pip-install-7msel020/av/
Complete output (52 lines):
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/__main__.py -> build/lib.linux-armv7l-3.7/av
copying av/datasets.py -> build/lib.linux-armv7l-3.7/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.7/av
copying av/__init__.py -> build/lib.linux-armv7l-3.7/av
creating build/lib.linux-armv7l-3.7/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.7/av/sidedata
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/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.7/av/audio
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/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/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.7/av/data
creating build/lib.linux-armv7l-3.7/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.7/av/container
running build_ext
running config
PyAV: 8.0.1 (unknown commit)
Python: 3.7.7 (default, Apr 1 2020, 10:55:29) n[GCC 9.3.0]
platform: Linux-4.19.66-v7+-armv7l-with-debian-bullseye-sid
extension_extra:
include_dirs: [b'include', b'/usr/local/include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: [b'/usr/local/lib']
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.1
PYAV_VERSION_STR="8.0.1"
writing build/temp.linux-armv7l-3.7/include/pyav/config.h
running cythonize
building 'av.descriptor' extension
creating build/temp.linux-armv7l-3.7/src
creating build/temp.linux-armv7l-3.7/src/av
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/srv/homeassistant/include -Ibuild/temp.linux-armv7l-3.7/include -I/usr/include/python3.7m -Iinclude -I/usr/local/include -I/srv/homeassistant/include -I/usr/include/python3.7m -Ibuild/temp.linux-armv7l-3.7/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.7/src/av/descriptor.o
src/av/descriptor.c:61:10: fatal error: Python.h: No existe el fichero o el directorio
61 | #include "Python.h"
| ^~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of av
Moving to /srv/homeassistant/bin/pyav
from /tmp/pip-uninstall-2igckbo_/pyav
Moving to /srv/homeassistant/lib/python3.7/site-packages/av-6.1.2.dist-info/
from /srv/homeassistant/lib/python3.7/site-packages/~v-6.1.2.dist-info
Moving to /srv/homeassistant/lib/python3.7/site-packages/av/
from /srv/homeassistant/lib/python3.7/site-packages/~v
Moving to /srv/homeassistant/lib/python3.7/site-packages/scratchpad/
from /srv/homeassistant/lib/python3.7/site-packages/~cratchpad
ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7msel020/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-7msel020/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8e5_7hnf/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av Check the logs for full command output.
(homeassistant) homeassistant@raspberrypi:/home/pi $

Any newest info? All packages installed, still av install error :/

@trafopowielacz Try to install av 8.0.1 manually (see the link provide by hunterjm above) and find what's going wrong... for me, missing librairies was the problem...

I have tried and I get the errors that I have indicated and it does not work

New env, FFmpeg v4 build from source. Still error

Clean install debian 10 and home assistant.. All works

Similar problem here. Tried to uninstall av 6.xx and install av 8.0.1 but the error continues.

The dependencies @browetd said was already installed

sudo apt-get install libavformat-dev libavdevice-dev libavcodec-dev libavfilter-dev libavutil-dev libswscale-dev libswresample-dev

I tried the installing av manually with the following command (tried both "inside and outside" venv):
pip3.7 install av==8.0.1
Also, tried with both pip3.7 and pip

I get some errors on GCC, like:

src/av/codec/codec.c:6056:36: error: ‘AV_CODEC_CAP_HYBRID’ undeclared (first use in this function)
       __pyx_t_7 = __Pyx_PyInt_From_int(AV_CODEC_CAP_HYBRID); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 125, __pyx_L1_error)
                                        ^~~~~~~~~~~~~~~~~~~
    error: command 'gcc' failed with exit status 1

The full log is here: https://pastebin.com/1fwcKYUS

Any thoughts on how to solve this?
Thanks

@BrunoZumba What version of ffmpeg do you have ? You must have ffmpeg 4...

@BrunoZumba What version of ffmpeg do you have ? You must have ffmpeg 4...

Oh, I thought it was the other way around: in order to get FFMPEG 4 I need first to update av to 8.0.1.

OK, but that brings me to another problem: I've been trying to get FFMPEG 4 for a few days now, and no success. I have version 3.2.14.

I have tried a lot of things, including Home Assistant page (https://www.home-assistant.io/integrations/ffmpeg/) that told me to install it with debian-backports (https://backports.debian.org/Instructions/). All I got was this:

pi@raspberrypi:~$ sudo apt-get -t buster-backports install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version (7:3.2.14-1~deb9u1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.

The same thing happens when I try to install it without this buster-backports:

pi@raspberrypi:~$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version (7:3.2.14-1~deb9u1+rpt1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I also tried this page instructions: https://www.home-assistant.io/integrations/stream

sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt upgrade

But this is what I get

pi@raspberrypi:~$ sudo add-apt-repository ppa:jonathonf/ffmpeg-4
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/stretch

Anyone knows how to force my raspberry pi to recognize that there is a latest version then 3.2.14??
I've run sudo apt-get update / sudo apt-get upgrade multiple times and nothing changes.
Thanks

In case anyone stumble into the same problem as me, heres is the solution: https://community.home-assistant.io/t/solved-problem-on-updating-ffmpeg-to-version-4/201661
Cheers!

(homeassistant) homeassistant@raspberrypi:/home/pi $ pip install av==8.0.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av==8.0.0
Using cached av-8.0.0.tar.gz (2.3 MB)
Building wheels for collected packages: av
Building wheel for av (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-szoicvsn
cwd: /tmp/pip-install-3jw5klyt/av/
Complete output (52 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/av
copying av/__main__.py -> build/lib.linux-armv7l-3.7/av
copying av/datasets.py -> build/lib.linux-armv7l-3.7/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.7/av
copying av/__init__.py -> build/lib.linux-armv7l-3.7/av
creating build/lib.linux-armv7l-3.7/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.7/av/sidedata
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/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.7/av/audio
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/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/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.7/av/data
creating build/lib.linux-armv7l-3.7/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.7/av/container
running build_ext
running config
PyAV: 8.0.0 (unknown commit)
Python: 3.7.7 (default, Apr 1 2020, 10:55:29) n[GCC 9.3.0]
platform: Linux-4.19.66-v7+-armv7l-with-debian-bullseye-sid
extension_extra:
include_dirs: [b'include', b'/usr/local/include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: [b'/usr/local/lib']
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.0
PYAV_VERSION_STR="8.0.0"
writing build/temp.linux-armv7l-3.7/include/pyav/config.h
running cythonize
building 'av.descriptor' extension
creating build/temp.linux-armv7l-3.7/src
creating build/temp.linux-armv7l-3.7/src/av
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -Ibuild/temp.linux-armv7l-3.7/include -I/usr/local/include -I/srv/homeassistant/include -Iinclude -I/srv/homeassistant/include -I/usr/include/python3.7m -Ibuild/temp.linux-armv7l-3.7/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.7/src/av/descriptor.o
src/av/descriptor.c:61:10: fatal error: Python.h: No existe el fichero o el directorio
61 | #include "Python.h"
| ^~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1


ERROR: Failed building wheel for av
Running setup.py clean for av
Failed to build av
Installing collected packages: av
Attempting uninstall: av
Found existing installation: av 6.1.2
Uninstalling av-6.1.2:
Successfully uninstalled av-6.1.2
Running setup.py install for av ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jipsv5vy/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av
cwd: /tmp/pip-install-3jw5klyt/av/
Complete output (52 lines):
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/__main__.py -> build/lib.linux-armv7l-3.7/av
copying av/datasets.py -> build/lib.linux-armv7l-3.7/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.7/av
copying av/__init__.py -> build/lib.linux-armv7l-3.7/av
creating build/lib.linux-armv7l-3.7/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.7/av/sidedata
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/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.7/av/audio
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/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/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.7/av/data
creating build/lib.linux-armv7l-3.7/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.7/av/container
running build_ext
running config
PyAV: 8.0.0 (unknown commit)
Python: 3.7.7 (default, Apr 1 2020, 10:55:29) n[GCC 9.3.0]
platform: Linux-4.19.66-v7+-armv7l-with-debian-bullseye-sid
extension_extra:
include_dirs: [b'include', b'/usr/local/include']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: [b'/usr/local/lib']
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=8.0.0
PYAV_VERSION_STR="8.0.0"
writing build/temp.linux-armv7l-3.7/include/pyav/config.h
running cythonize
building 'av.descriptor' extension
creating build/temp.linux-armv7l-3.7/src
creating build/temp.linux-armv7l-3.7/src/av
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -I/usr/local/include -Iinclude -Ibuild/temp.linux-armv7l-3.7/include -I/srv/homeassistant/include -I/srv/homeassistant/include -I/usr/include/python3.7m -Ibuild/temp.linux-armv7l-3.7/include -c src/av/descriptor.c -o build/temp.linux-armv7l-3.7/src/av/descriptor.o
src/av/descriptor.c:61:10: fatal error: Python.h: No existe el fichero o el directorio
61 | #include "Python.h"
| ^~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of av
Moving to /srv/homeassistant/bin/pyav
from /tmp/pip-uninstall-fsz2dhq3/pyav
Moving to /srv/homeassistant/lib/python3.7/site-packages/av-6.1.2.dist-info/
from /srv/homeassistant/lib/python3.7/site-packages/~v-6.1.2.dist-info
Moving to /srv/homeassistant/lib/python3.7/site-packages/av/
from /srv/homeassistant/lib/python3.7/site-packages/~v
Moving to /srv/homeassistant/lib/python3.7/site-packages/scratchpad/
from /srv/homeassistant/lib/python3.7/site-packages/~cratchpad
ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-3jw5klyt/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jipsv5vy/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.7/av Check the logs for full command output.

Hello there, do you have any news about av 8.0.2 on raspberry ? It seems impossible to install with pip:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting av
Using cached av-8.0.2.tar.gz (2.3 MB)
Building wheels for collected packages: av
Building wheel for av (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-__b96sb4
cwd: /tmp/pip-install-ujrvoge5/av/
Complete output (29 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.8
creating build/lib.linux-armv7l-3.8/av
copying av/__init__.py -> build/lib.linux-armv7l-3.8/av
copying av/__main__.py -> build/lib.linux-armv7l-3.8/av
copying av/datasets.py -> build/lib.linux-armv7l-3.8/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.8/av
creating build/lib.linux-armv7l-3.8/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.8/av/subtitles
creating build/lib.linux-armv7l-3.8/av/video
copying av/video/__init__.py -> build/lib.linux-armv7l-3.8/av/video
creating build/lib.linux-armv7l-3.8/av/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.8/av/data
creating build/lib.linux-armv7l-3.8/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.8/av/sidedata
creating build/lib.linux-armv7l-3.8/av/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.8/av/audio
creating build/lib.linux-armv7l-3.8/av/codec
copying av/codec/__init__.py -> build/lib.linux-armv7l-3.8/av/codec
creating build/lib.linux-armv7l-3.8/av/filter
copying av/filter/__init__.py -> build/lib.linux-armv7l-3.8/av/filter
creating build/lib.linux-armv7l-3.8/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.8/av/container
running build_ext
running config
pkg-config returned flags we don't understand: -pthread -pthread


ERROR: 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
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-q3o1bwu_/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.8/av
cwd: /tmp/pip-install-ujrvoge5/av/
Complete output (29 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.8
creating build/lib.linux-armv7l-3.8/av
copying av/__init__.py -> build/lib.linux-armv7l-3.8/av
copying av/__main__.py -> build/lib.linux-armv7l-3.8/av
copying av/datasets.py -> build/lib.linux-armv7l-3.8/av
copying av/deprecation.py -> build/lib.linux-armv7l-3.8/av
creating build/lib.linux-armv7l-3.8/av/subtitles
copying av/subtitles/__init__.py -> build/lib.linux-armv7l-3.8/av/subtitles
creating build/lib.linux-armv7l-3.8/av/video
copying av/video/__init__.py -> build/lib.linux-armv7l-3.8/av/video
creating build/lib.linux-armv7l-3.8/av/data
copying av/data/__init__.py -> build/lib.linux-armv7l-3.8/av/data
creating build/lib.linux-armv7l-3.8/av/sidedata
copying av/sidedata/__init__.py -> build/lib.linux-armv7l-3.8/av/sidedata
creating build/lib.linux-armv7l-3.8/av/audio
copying av/audio/__init__.py -> build/lib.linux-armv7l-3.8/av/audio
creating build/lib.linux-armv7l-3.8/av/codec
copying av/codec/__init__.py -> build/lib.linux-armv7l-3.8/av/codec
creating build/lib.linux-armv7l-3.8/av/filter
copying av/filter/__init__.py -> build/lib.linux-armv7l-3.8/av/filter
creating build/lib.linux-armv7l-3.8/av/container
copying av/container/__init__.py -> build/lib.linux-armv7l-3.8/av/container
running build_ext
running config
pkg-config returned flags we don't understand: -pthread -pthread
----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ujrvoge5/av/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-q3o1bwu_/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.8/av Check the logs for full command output.

@aspar @LucioBenedetti
Do you have ffmpeg 4 installed as this is a prerequisit ?

yes. I've tried from raspberry repository (sudo apt install ffmpeg4) and
also by compile it (
https://gist.github.com/jjangsangy/058456fe2d04e3c5f6107d62b60542e3)
Do you have any tip?

Il giorno sab 24 ott 2020 alle ore 14:09 browetd notifications@github.com
ha scritto:

@aspar https://github.com/aspar @LucioBenedetti
https://github.com/LucioBenedetti
Do you have ffmpeg 4 installed as this is a prerequisit ?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/core/issues/36138#issuecomment-715905871,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGBBMPCBUGPQHN5JPTZQADSMK7ZJANCNFSM4NJYSZ4Q
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ofuangka picture ofuangka  Â·  3Comments

neonandu picture neonandu  Â·  3Comments

missedtheapex picture missedtheapex  Â·  3Comments

sogeniusio picture sogeniusio  Â·  3Comments

flsabourin picture flsabourin  Â·  3Comments