-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The PyAV library does not install properly for version 7.0.1 #619
Comments
This looks like PyAV is building against FFmpeg 3.x. You have an FFmpeg 4.1.3 from anaconda. Is there an FFmpeg 3.x from the OS as well? |
Yes there was a ffmpeg 3.x but uninstalled it and installed 4.1.3. I uninstalled it and installed the latest ffmpeg
still fails with the same error while installing |
Here is the error file and environment.yml after a fresh environment creation using anaconda. Error While Installing
Env Filename: webrtcenv
channels:
- defaults
dependencies:
- _libgcc_mutex=0.1=main
- ca-certificates=2020.1.1=0
- certifi=2020.4.5.1=py37_0
- ld_impl_linux-64=2.33.1=h53a641e_7
- libedit=3.1.20181209=hc058e9b_0
- libffi=3.2.1=hd88cf55_4
- libgcc-ng=9.1.0=hdf63c60_0
- libstdcxx-ng=9.1.0=hdf63c60_0
- ncurses=6.2=he6710b0_0
- openssl=1.1.1f=h7b6447c_0
- pip=20.0.2=py37_1
- python=3.7.7=hcf32534_0_cpython
- readline=8.0=h7b6447c_0
- setuptools=46.1.3=py37_0
- sqlite=3.31.1=h7b6447c_0
- tk=8.6.8=hbc83047_0
- wheel=0.34.2=py37_0
- xz=5.2.4=h14c3975_4
- zlib=1.2.11=h7b6447c_3
- pip:
- crc32c==2.0
- pyee==7.0.1
prefix: /home/dartnixtrix/anaconda3/envs/webrtcenv
|
Okay. Thanks. I'm gonna go make a note in #605 |
Alright. Thanks. I will try to do something to resolve this on my system. Will share it here if it's somehow a fault on my end. |
Oh and thank you for the prompt response mate! |
I've been trying to install aiortc==0.9.27 for the past several days here with little luck. aiortc has a dependency on PyAV. For some reason there's no "official" repo that has a built ffmpeg for centos 7 so I had to build one by hand. I tried these instructions from #510
with little success. Now I'm getting errors like this when linking against the shared ffpmeg libraries that got built:
Not sure what next step should be. I'm going to try forcing in that -fPIC option but I think I'm down a rathole! |
You are linking against a static FFmpeg (see: |
As of PyAV 8.0.0, binary wheels are provided which will greatly simplify installation and should solve your issue. |
@jlaine the binary wheels are unfortunately note compatible with all linux distribution (needs manylinux2014 and manylinux1 maybe?). I'm running ubuntu 18.04 with python 3.7 and I can't install it |
@youben11 try installing the latest pip. Ubuntu's packaged version of pip (9.0.1) is too old for anything labeled manylinux2010 or later. |
I am also having this issue on the latest pip3 with the binary for PyAV 8.0.2. Trying to install I gather it may be connected to where ffmpeg is installed (I just used
|
same issue as @genekogan. Were you able to solve @genekogan ? |
@tushar-semwal I ended up installing it from source and that worked for me. |
Same issue as @genekogan & @tushar-semwal I've solved the issue by installing ffmpeg version 1. install from pip:python3 -m pip install Cython numpy Pillow 2. install from apt package manager:sudo apt install yasm libvpx. libx264. cmake libavdevice-dev libavfilter-dev libopus-dev libvpx-dev pkg-config libsrtp2-dev libpython3-dev python3-numpy 3. download & install
|
Thanks! |
Did not work for me, unfortunately. Looked good anyway... |
Overview
While installing the PyAV package via. PYPI (pip install av), the build breaks. And it does not install.
Expected behavior
It was expected that the package will install after ffmpeg version > 4 was installed.
Actual behavior
The build/install fails with the following error
Build report:
Investigation
I tried to compile download the av package and compile it using setup.py and the --ffmpeg-dir flag pointing to the ffmpeg directory. Installation fails.
Reproduction
Have not tried on any other system.
Versions
Research
I have done the following:
Additional context
I want to use "aiortc", this is a dependency. I have read an issue on PyAV repo. in which it was said "it is broken since 7.0.0". Tried installing 6.2.0 with success. But 7.0.1 is what is needed.
The text was updated successfully, but these errors were encountered: