Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [WinError 2] 系统找不到指定的文件。 #76

Open
zhangtsingtsi opened this issue Oct 14, 2022 · 8 comments
Open

Comments

@zhangtsingtsi
Copy link

C:\Users\a505s.conda\envs\pytorch-openpose\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension:
warn(f"Failed to load image Python extension: {e}")
Traceback (most recent call last):
File "F:\pytorch-openpose\demo_video.py", line 77, in
ffprobe_result = ffprobe(args.file)
File "F:\pytorch-openpose\demo_video.py", line 31, in ffprobe
result = subprocess.run(command_array, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 800, in init
restore_signals, start_new_session)
File "C:\Users\a505s.conda\envs\pytorch-openpose\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

HELP!!

@zhangtsingtsi
Copy link
Author

There is an error when I run "python demo_video.py 1.mp4"

@Hzzone
Copy link
Owner

Hzzone commented Oct 14, 2022

Use absolute path.

@puterh
Copy link

puterh commented Oct 24, 2022

Absolute path is not working.

@dd-rongfa
Copy link

我遇到了相同的问题了,你解决了么?

@skxmxm
Copy link

skxmxm commented Dec 13, 2022

你没有下ffmpeg,再官网下载之后加到环境变量里就行了

@vielleicht-fe
Copy link

我在conda环境中使用pip install ffmpeg-python下载了ffmpeg,但是仍然有这个问题

@skxmxm
Copy link

skxmxm commented Mar 19, 2023

我在conda环境中使用pip install ffmpeg-python下载了ffmpeg,但是仍然有这个问题

你可以尝试直接在ffmpeg官网下载,然后将目录加入环境变量,这样就可以命令行调用了

@Chortine
Copy link

Chortine commented Nov 1, 2024

sudo apt-get install ffmpeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants