error during building on python 3.10
See original GitHub issueArch Linux - everything is bleeding edge…
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/ffmpeg
copying ffmpeg/_view.py -> build/lib/ffmpeg
copying ffmpeg/_filters.py -> build/lib/ffmpeg
copying ffmpeg/_probe.py -> build/lib/ffmpeg
copying ffmpeg/_utils.py -> build/lib/ffmpeg
copying ffmpeg/dag.py -> build/lib/ffmpeg
copying ffmpeg/_run.py -> build/lib/ffmpeg
copying ffmpeg/_ffmpeg.py -> build/lib/ffmpeg
copying ffmpeg/__init__.py -> build/lib/ffmpeg
copying ffmpeg/nodes.py -> build/lib/ffmpeg
==> Starting check()...
=========================================================================== test session starts ===========================================================================
platform linux -- Python 3.10.2, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
rootdir: /home/chibo/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0, configfile: pytest.ini, testpaths: ffmpeg/tests
plugins: mock-3.7.0
collected 60 items
ffmpeg/tests/test_ffmpeg.py .....................................................F...... [100%]
================================================================================ FAILURES =================================================================================
________________________________________________________________________________ test_pipe ________________________________________________________________________________
def test_pipe():
width = 32
height = 32
frame_size = width * height * 3 # 3 bytes for rgb24
frame_count = 10
start_frame = 2
out = (
ffmpeg.input(
'pipe:0',
format='rawvideo',
pixel_format='rgb24',
video_size=(width, height),
framerate=10,
)
.trim(start_frame=start_frame)
.output('pipe:1', format='rawvideo')
)
args = out.get_args()
assert args == [
'-f',
'rawvideo',
'-video_size',
'{}x{}'.format(width, height),
'-framerate',
'10',
'-pixel_format',
'rgb24',
'-i',
'pipe:0',
'-filter_complex',
'[0]trim=start_frame=2[s0]',
'-map',
'[s0]',
'-f',
'rawvideo',
'pipe:1',
]
cmd = ['ffmpeg'] + args
p = subprocess.Popen(
cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE
)
in_data = bytes(
bytearray([random.randint(0, 255) for _ in range(frame_size * frame_count)])
)
p.stdin.write(in_data) # note: this could block, in which case need to use threads
p.stdin.close()
out_data = p.stdout.read()
> assert len(out_data) == frame_size * (frame_count - start_frame)
E AssertionError: assert 30720 == (3072 * (10 - 2))
E + where 30720 = len(b'\xe1\xb7\xc8hT\x7fN\x87\xfe\xf7\xda\x16\x14\x1b26H\xb6\xc2\xddm\x00\xac\xbeRa\x98\x9c(\x05\n\xddl\xec0\xbc+}\x0bv\t\...9\xe2\xc8L\x829\xd5\xa4-w\\\xb6l\x88`\xa3is\xa1\x91\x97~\xb4\x85\xee\xc9F\xdb\xba\xe2\t\xd0\x85$\xfc\x16\xe6\xb9\x97eG')
ffmpeg/tests/test_ffmpeg.py:699: AssertionError
============================================================================ warnings summary =============================================================================
../../../../../../../usr/lib/python3.10/site-packages/past/builtins/misc.py:45
/usr/lib/python3.10/site-packages/past/builtins/misc.py:45: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
from imp import reload
ffmpeg/tests/test_ffmpeg.py:31
/home/chibo/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:31: DeprecationWarning: invalid escape sequence '\:'
assert ffmpeg._utils.escape_chars('a:b', ':') == 'a\:b'
ffmpeg/tests/test_ffmpeg.py::test__get_filter_complex_input
ffmpeg/tests/test_ffmpeg.py::test__multi_output_edge_label_order
/home/chibo/.cache/yay/python-ffmpeg/src/ffmpeg-python-0.2.0/ffmpeg/tests/test_ffmpeg.py:722: FutureWarning: Possible nested set at position 20
m = re.search(r'\[([^]]+)\]{}(?=[[;]|$)'.format(name), flt)
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info =========================================================================
FAILED ffmpeg/tests/test_ffmpeg.py::test_pipe - AssertionError: assert 30720 == (3072 * (10 - 2))
================================================================ 1 failed, 59 passed, 4 warnings in 0.59s =================================================================
==> ERROR: A failure occurred in check().
Aborting...
-> error making: python-ffmpeg
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:6
Top Results From Across the Web
Built-in Exceptions — Python 3.11.1 documentation
This can be used to test an exception handler or to report an error condition ... The built-in exception classes can be subclassed...
Read more >pywebview installing Error Python windows 10 ...
[end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for...
Read more >Error building, At least Python 3.10 is required to build
My distro ( Devuan ) doesn't yet offer python3. · Find the python version you need and download it from · Expand it...
Read more >1964955 – pyproj fails to build with Python 3.10: TypeError ...
Configuration error: There is a programmable error in your configuration file: Traceback (most recent call last): File "/usr/lib/python3.10/site ...
Read more >Error installing Pystan in python 3.10 with gcc 9.2.0
note: This error originates from a subprocess, and is likely not a problem with pip. ... Googling around gives me the impression that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
downgrade was never an option…
Possible fix here? https://aur.archlinux.org/cgit/aur.git/tree/test_pipe.patch?h=python-ffmpeg-patched-git