Prerequisites when building Streamlink on Windows? #5989
-
DescriptionAre there any OS-specific prerequisites for building Streamlink from source on Windows? When attempting to build Streamlink 6.7.3 (latest stable release) using Python 3.12.3, with the command
It looks like it is trying to use a wrong code page or something? I tried various tricks that I found / could think of to force UTF-8, such as Can anyone suggest how to address this? There are reasons I don't want to just use the precompiled Windows binaries, I need to be able to build it from source. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Does this patch fix the issue? diff --git a/build_backend/plugins_json.py b/build_backend/plugins_json.py
index 70f4e93d..4c81be1d 100644
--- a/build_backend/plugins_json.py
+++ b/build_backend/plugins_json.py
@@ -443,7 +443,7 @@ def build(pluginsdir: Path = DEFAULT_PLUGINSPATH) -> Output:
for file in pluginsdir.glob("*.py"):
name = file.name
plugin = re.sub(r"\.py$", "", name)
- source = file.read_text()
+ source = file.read_text(encoding="utf-8")
tree = ast.parse(source, str(file))
visitor = PluginVisitor() |
Beta Was this translation helpful? Give feedback.
Does this patch fix the issue?