3D-ResNets-PyTorch
3D-ResNets-PyTorch copied to clipboard
run util_scripts.generate_video_jpgs get TypeError: __init__() got an unexpected keyword argument 'capture_output'
Traceback (most recent call last):
File "/home/changwei/anaconda3/envs/3D/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/changwei/anaconda3/envs/3D/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/xurongtao/3D-ResNets-PyTorch/util_scripts/generate_video_jpgs.py", line 117, in
capture_output was introduced in Python 3.7 version https://stackoverflow.com/questions/53209127/subprocess-unexpected-keyword-argument-capture-output/53209196
@kenshohara should Python 3.7 be a requirement?
replace line 17 in generate_videos_jpgs.py with p = subprocess.run(ffprobe_cmd , stdout=PIPE, stderr=PIPE) and also dont forget to add (from subprocess import PIPE) at the begining of this file
@elaheyenaz65 It works, thanks!
@elaheyenaz65 thanks a lot!