Repository: PyAV-Org/PyAV

Issue #170: Didn't find 'avformat_open_input' Ubuntu
Created: 2016-05-13T01:19:07Z
We didn't find `avformat_open_input` in the libraries.
    We look for it only as a sanity check to make sure the build
    process is working as expected. It is not, so we must abort.

    Please open a ticket at https://github.com/mikeboers/PyAV/issues
    with the folowing information:

    PyAV: 0.3.1
    Python: 2.7.6 (default, Jun 22 2015, 17:58:13) \n[GCC 4.8.2]
    platform: Linux-3.19.0-59-generic-x86_64-with-Ubuntu-14.04-trusty
    extension_extra:
        libraries: ['X11', 'Xext', 'Xv', 'avcodec', 'avdevice', 'avfilter', 'avformat', 'avutil', 'bz2', 'm', 'swresample', 'swscale', 'xcb', 'xcb-render', 'xcb-shape', 'xcb-xfixes', 'z']
        library_dirs: ['/usr/local/lib']
        include_dirs: ['/usr/local/include', 'include', '/usr/include/python2.7']
    config_macros:
        PYAV_VERSION=0.3.1
        PYAV_VERSION_STR="0.3.1"
        PYAV_COMMIT_STR="unknown-commit"
        PYAV_HAVE_LIBSWRESAMPLE=1
        PYAV_HAVE_AV_CALLOC=1
        PYAV_HAVE_AV_FRAME_GET_BEST_EFFORT_TIMESTAMP=1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-A8DzRj/av/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-txMrAL-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-A8DzRj/av/


EDIT by @mikeboers: down the page I wrote:

I'm pretty sure there there is some sort of compilation error that arises during linking to the static library vs the dynamic ones. The "fix", I believe, is to discuss this in the error message, and expose a flag so that you can try again and print out all of the compiler errors.

Duplicate issue #280: `pip install av` produces the following
Created: 2017-12-06T20:42:50Z
We didn't find `avformat_open_input` in the libraries.
We look for it only as a sanity check to make sure the build
process is working as expected. It is not, so we must abort.

Please open a ticket at https://github.com/mikeboers/PyAV/issues
with the folowing information:

PyAV: 0.3.3 b''
Python: b'3.5.2 (default, Nov 17 2016, 17:05:23) \\n[GCC 5.4.0 20160609]'
platform: Linux-4.4.0-98-generic-x86_64-with-Ubuntu-16.04-xenial
extension_extra:
	library_dirs: [b'/usr/local/lib']
	libraries: [b'X11', b'asound', b'avcodec', b'avdevice', b'avfilter', b'avformat', b'avutil', b'bz2', b'dl', b'jack', b'lzma', b'm', b'nppc', b'nppicc', b'nppig', b'swresample', b'swscale', b'va', b'va-drm', b'va-x11', b'vdpau', b'xcb', b'xcb-render', b'xcb-shape', b'xcb-shm', b'xcb-xfixes', b'z']
	include_dirs: [b'/usr/local/include', b'include', b'/usr/include/python3.5m', b'/home/tim/venvs/venv_enc/include/python3.5m']
config_macros:
	PYAV_VERSION=0.3.3
	PYAV_VERSION_STR="0.3.3"
	PYAV_COMMIT_STR="unknown-commit"
	PYAV_HAVE_LIBSWRESAMPLE=1

----------------------------------------

Command "/home/tim/venvs/venv_enc/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-u28_0b8_/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-7hf3ib7h-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/tim/venvs/venv_enc/include/site/python3.5/av" failed with error code 1 in /tmp/pip-build-u28_0b8_/av/

Closing comment (2018-03-21T15:30:52Z): This is very likely the same as #170, in which FFmpeg is built statically.