DeprecationWarning exception raised
Created by: SamyCookie
File "/usr/lib/python3/dist-packages/av/__init__.py", line 15, in <module>
from av.audio.fifo import AudioFifo
File "/usr/lib/python3/dist-packages/av/audio/__init__.py", line 1, in <module>
from .frame import AudioFrame
File "av/audio/frame.pyx", line 1, in init av.audio.frame
File "av/codec/codec.pxd", line 4, in init av.frame
File "/usr/lib/python3/dist-packages/av/codec/__init__.py", line 1, in <module>
from .codec import (Capabilities, Codec, Properties, codec_descriptor,
File "av/video/format.pxd", line 4, in init av.codec.codec
File "/usr/lib/python3/dist-packages/av/video/__init__.py", line 1, in <module>
from .frame import VideoFrame
File "av/codec/context.pxd", line 11, in init av.video.frame
File "av/container/streams.pxd", line 4, in init av.codec.context
File "/usr/lib/python3/dist-packages/av/container/__init__.py", line 1, in <module>
from .core import Container, Flags, open
File "av/packet.pxd", line 8, in init av.container.core
File "av/dictionary.pxd", line 4, in init av.packet
File "av/dictionary.pyx", line 51, in init av.dictionary
File "/usr/lib/python3.7/collections/__init__.py", line 52, in __getattr__
DeprecationWarning, stacklevel=2)
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
Overview
some collection
imports are raising a DeprecationWarning during execution
Expected behavior
no exception
Actual behavior
DeprecationWarning exception raised at running code
Build report: Build is OK
Reproduction
run a PyAV program with a python intepreter version >=3.7
Versions
- OS: Debian Buster
- PyAV runtime: 4.1.4-1
PyAV v7.0.1
git origin: git@github.com:mikeboers/PyAV
git commit: unknown-commit
library configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
library license: GPL version 2 or later
libavcodec 58. 35.100
libavdevice 58. 5.100
libavfilter 7. 40.101
libavformat 58. 20.100
libavutil 56. 22.100
libswresample 3. 3.100
libswscale 5. 3.100
- PyAV build:
PyAV: 7.0.1 (unknown commit)
Python: 3.7.3 (default, Dec 20 2019, 18:57:59) \n[GCC 8.3.0]
platform: Linux-4.19.0-8-amd64-x86_64-with-debian-10.3
extension_extra:
include_dirs: [b'include', b'/usr/include/x86_64-linux-gnu']
libraries: [b'avformat', b'avcodec', b'avdevice', b'avutil', b'avfilter', b'swscale', b'swresample']
library_dirs: []
define_macros: []
runtime_library_dirs: []
config_macros:
PYAV_COMMIT_STR="unknown-commit"
PYAV_VERSION=7.0.1
PYAV_VERSION_STR="7.0.1"
- FFmpeg:
ffmpeg version 4.1.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Research
I have done the following:
-
Checked the PyAV documentation -
Searched on Google - [] Searched on Stack Overflow
-
Looked through old GitHub issues -
Asked on PyAV Gitter -
... and waited 72 hours for a response.
Additional context
{{ Add any other context about the problem here. }}