Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_decompress_zstd fails with zstd installed #142

Open
mtelka opened this issue Sep 26, 2023 · 0 comments
Open

test_decompress_zstd fails with zstd installed #142

mtelka opened this issue Sep 26, 2023 · 0 comments

Comments

@mtelka
Copy link

mtelka commented Sep 26, 2023

The test_decompress_zstd test fails with the zstd (instead of zstandard) installed:

ERROR: test_decompress_zstd
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 236, in decompress
    return self._decompression_func(self._module, content)
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 247, in _zstd_decompress
    with module.ZstdDecompressor().write_to(output_buffer) as decompressor:
AttributeError: module 'zstd' has no attribute 'ZstdDecompressor'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "$(BUILD_DIR)/test/unit/descriptor/compression.py", line 26, in test_decompress_zstd
    self._check_file(Compression.ZSTD, 'compressed_zstd')
  File "$(BUILD_DIR)/test/unit/descriptor/compression.py", line 38, in _check_file
    content = compression.decompress(compressed_file.read())
  File "$(BUILD_DIR)/stem/descriptor/__init__.py", line 238, in decompress
    raise IOError('Failed to decompress as %s: %s' % (self, exc))
OSError: Failed to decompress as zstd: module 'zstd' has no attribute 'ZstdDecompressor'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant