From e4fd2638458b9f6c32ea824df8ae774a3e4a7b33 Mon Sep 17 00:00:00 2001 From: vladosstrawberry <33176446+vladosstrawberry@users.noreply.github.com> Date: Tue, 17 May 2022 21:06:41 +0200 Subject: [PATCH 1/2] wrong library 1/2 zstandard library is actually used instead of zstandard . Take a look at the API - https://python-zstandard.readthedocs.io/en/latest/compressor.html#zstdcompressor And issue I created https://github.com/facebook/sapp/issues/71 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ff111666..1002a30c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,4 @@ prompt-toolkit traitlets typing-extensions pyre-extensions -zstd +zstandard From 796d33ace0ccebbd943c865d725c1e9966f0e511 Mon Sep 17 00:00:00 2001 From: vladosstrawberry <33176446+vladosstrawberry@users.noreply.github.com> Date: Tue, 17 May 2022 21:11:49 +0200 Subject: [PATCH 2/2] wrong library 2/2 Import zstandard as zstd --- sapp/json_diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapp/json_diagnostics.py b/sapp/json_diagnostics.py index 57e7d446..5a245d2b 100644 --- a/sapp/json_diagnostics.py +++ b/sapp/json_diagnostics.py @@ -35,7 +35,7 @@ from multiprocessing import Pool from typing import Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, Type -import zstd +import zstandard as zstd from pygments import highlight from pygments.formatters import TerminalFormatter from pygments.lexers import JsonLexer