Skip to content

Prerequisites when building Streamlink on Windows? #5989

Answered by bastimeyer
danj2k asked this question in Q&A
Discussion options

You must be logged in to vote

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()

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bastimeyer
Comment options

@danj2k
Comment options

@bastimeyer
Comment options

Answer selected by bastimeyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants