VIBE icon indicating copy to clipboard operation
VIBE copied to clipboard

[bug] FileNotFoundError: [WinError 2] The system cannot find the file specified

Open akniloy6 opened this issue 4 years ago • 4 comments

python demo.py --vid_file sample_video.mp4 --output_folder output/ --display Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp\sample_video_mp4/%06d.png" Traceback (most recent call last): File "demo.py", line 383, in main(args) File "demo.py", line 71, in main image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True) File "C:\Users\Ak Niloy\Desktop\VIBE\lib\utils\demo_utils.py", line 195, in video_to_images subprocess.call(command) File "C:\Users\Ak Niloy.conda\envs\pyT\lib\subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "C:\Users\Ak Niloy.conda\envs\pyT\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "C:\Users\Ak Niloy.conda\envs\pyT\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified

not sure what the problem is here. I'm using anaconda on windows 10., python3.7 Installed all libraries successfully

akniloy6 avatar Aug 16 '20 14:08 akniloy6

I met the same problem. Working on Ubuntu18.04.

(vibe-env) suliang@suliang-CNH5L:~/VIBE$ python demo.py --vid_file sample_video.mp4 --output_folder output/ --display Running "ffmpeg -i sample_video.mp4 -f image2 -v error /tmp/sample_video_mp4/%06d.png" Traceback (most recent call last): File "demo.py", line 383, in main(args) File "demo.py", line 71, in main image_folder, num_frames, img_shape = video_to_images(video_file, return_info=True) File "/home/suliang/VIBE/lib/utils/demo_utils.py", line 195, in video_to_images subprocess.call(command) File "/home/suliang/anaconda3/envs/vibe-env/lib/python3.7/subprocess.py", line 339, in call with Popen(*popenargs, **kwargs) as p: File "/home/suliang/anaconda3/envs/vibe-env/lib/python3.7/subprocess.py", line 800, in init restore_signals, start_new_session) File "/home/suliang/anaconda3/envs/vibe-env/lib/python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg': 'ffmpeg'

sl903dj avatar Sep 02 '20 05:09 sl903dj

Your computer environment needs ffmpeg installed.

sl903dj avatar Sep 02 '20 05:09 sl903dj

I hope the answer is not too late.

Just modify the subprocess.py of your environment a bit.

def __init__(self, args, bufsize=-1, executable=None,
             stdin=None, stdout=None, stderr=None,
             preexec_fn=None, close_fds=_PLATFORM_DEFAULT_CLOSE_FDS,
             shell=True, cwd=None, env=None, universal_newlines=False,
             startupinfo=None, creationflags=0,
             restore_signals=True, start_new_session=False,
             pass_fds=(), *, encoding=None, errors=None):

From shell=False -> True

minje0611 avatar Mar 29 '21 08:03 minje0611

I hope the answer is not too late.

Just modify the subprocess.py of your environment a bit.

def __init__(self, args, bufsize=-1, executable=None,
             stdin=None, stdout=None, stderr=None,
             preexec_fn=None, close_fds=_PLATFORM_DEFAULT_CLOSE_FDS,
             shell=True, cwd=None, env=None, universal_newlines=False,
             startupinfo=None, creationflags=0,
             restore_signals=True, start_new_session=False,
             pass_fds=(), *, encoding=None, errors=None):

From shell=False -> True

I don't know python - where/how would I add that?

halfGuardian avatar May 11 '21 07:05 halfGuardian