From f48e48e6da9f42bd764d28c7c995c8e777836c83 Mon Sep 17 00:00:00 2001 From: David Calano Date: Wed, 29 Mar 2023 01:48:12 -0400 Subject: [PATCH] Fix for Issue #1008 - Added missing decode() when setting pkg_path variable --- archivebox/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivebox/main.py b/archivebox/main.py index 0499f73f..5878185c 100755 --- a/archivebox/main.py +++ b/archivebox/main.py @@ -962,7 +962,7 @@ def setup(out_dir: Path=OUTPUT_DIR) -> None: PYTHON_BINARY, '-m', 'pip', 'show', 'youtube_dl', - ], capture_output=True, text=True, cwd=out_dir).stdout.split('Location: ')[-1].split('\n', 1)[0] + ], capture_output=True, text=True, cwd=out_dir).stdout.decode().split('Location: ')[-1].split('\n', 1)[0] NEW_YOUTUBEDL_BINARY = Path(pkg_path) / 'youtube_dl' / '__main__.py' os.chmod(NEW_YOUTUBEDL_BINARY, 0o777) assert NEW_YOUTUBEDL_BINARY.exists(), f'youtube_dl must exist inside {pkg_path}'