소스 검색

Fix for Issue #1008

- Added missing decode() when setting pkg_path variable
David Calano 2 년 전
부모
커밋
f48e48e6da
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      archivebox/main.py

+ 1 - 1
archivebox/main.py

@@ -962,7 +962,7 @@ def setup(out_dir: Path=OUTPUT_DIR) -> None:
                 PYTHON_BINARY, '-m', 'pip',
                 PYTHON_BINARY, '-m', 'pip',
                 'show',
                 'show',
                 'youtube_dl',
                 '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'
             NEW_YOUTUBEDL_BINARY = Path(pkg_path) / 'youtube_dl' / '__main__.py'
             os.chmod(NEW_YOUTUBEDL_BINARY, 0o777)
             os.chmod(NEW_YOUTUBEDL_BINARY, 0o777)
             assert NEW_YOUTUBEDL_BINARY.exists(), f'youtube_dl must exist inside {pkg_path}'
             assert NEW_YOUTUBEDL_BINARY.exists(), f'youtube_dl must exist inside {pkg_path}'