Skip to content

'ffdl', 'install', '--add-path' returned non-zero exit status 2. #5

@tin2tin

Description

@tin2tin

I'm trying to install this from within Blender, but I'm getting this error:
subprocess.CalledProcessError: Command '['C:\\Program Files\\Blender Foundation\\Blender 3.6\\3.6\\python\\bin\\python.exe', 'ffdl', 'install', '--add-path']' returned non-zero exit status 2.

This is how I try to install it:

import subprocess, site, sys

app_path = site.USER_SITE
if app_path not in sys.path:
    sys.path.append(app_path)
pybin = sys.executable

try:
    exec("import ffmpeg_downloader")
except ModuleNotFoundError:
    subprocess.check_call(
        [
            pybin,
            "-m",
            "pip",
            "install",
            "ffmpeg-downloader",
            "--user",
        ]
    )
    subprocess.check_call(
        [
            pybin,
            "ffdl",
            "install",
            "--add-path",
        ]
    )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions