Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1031443: python-zstandard: FTBFS: ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)

432 views
Skip to first unread message

Lucas Nussbaum

unread,
Feb 17, 2023, 2:00:06 AM2/17/23
to
Source: python-zstandard
Version: 0.19.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20230216 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cd docs; LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml . _build/html
> Running Sphinx v5.3.0
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 14 source files that are out of date
> updating environment: [new config] 14 added, 0 changed, 0 removed
> reading sources... [ 7%] api_usage
> reading sources... [ 14%] buffer
> reading sources... [ 21%] compression_parameters
> reading sources... [ 28%] compressor
> reading sources... [ 35%] concepts
> reading sources... [ 42%] contributing
> reading sources... [ 50%] decompressor
> reading sources... [ 57%] dictionaries
> reading sources... [ 64%] index
> reading sources... [ 71%] installing
> reading sources... [ 78%] misc_apis
> reading sources... [ 85%] multithreaded
> reading sources... [ 92%] news
> reading sources... [100%] projectinfo
>
> WARNING: autodoc: failed to import class 'BufferSegment' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'BufferSegments' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'BufferWithSegments' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'BufferWithSegmentsCollection' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionParameters' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressor' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionWriter' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionReader' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionObj' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionChunker' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdDecompressor' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdDecompressionWriter' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdDecompressionReader' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdDecompressionObj' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'ZstdCompressionDict' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'train_dictionary' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'get_frame_parameters' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'frame_header_size' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'frame_content_size' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import class 'FrameParameters' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'estimate_decompression_context_size' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'open' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'compress' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> WARNING: autodoc: failed to import function 'decompress' from module 'zstandard'; the following exception was raised:
> No module named 'zstandard'
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [ 7%] api_usage
> writing output... [ 14%] buffer
> writing output... [ 21%] compression_parameters
> writing output... [ 28%] compressor
> writing output... [ 35%] concepts
> writing output... [ 42%] contributing
> writing output... [ 50%] decompressor
> writing output... [ 57%] dictionaries
> writing output... [ 64%] index
> writing output... [ 71%] installing
> writing output... [ 78%] misc_apis
> writing output... [ 85%] multithreaded
> writing output... [ 92%] news
> writing output... [100%] projectinfo
>
> generating indices... genindex done
> writing additional pages... search done
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded, 24 warnings.
>
> The HTML pages are in _build/html.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: python3.11 setup.py test
> /<<PKGBUILDDIR>>/setup.py:32: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
> cffi_version = LooseVersion(cffi.__version__)
> /<<PKGBUILDDIR>>/setup.py:33: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
> if cffi_version < LooseVersion(MINIMUM_CFFI_VERSION):
> not modified: 'build/zstandard/_cffi.c'
> generating build/zstandard/_cffi.c
> (already up-to-date)
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> running egg_info
> creating zstandard.egg-info
> writing zstandard.egg-info/PKG-INFO
> writing dependency_links to zstandard.egg-info/dependency_links.txt
> writing requirements to zstandard.egg-info/requires.txt
> writing top-level names to zstandard.egg-info/top_level.txt
> writing manifest file 'zstandard.egg-info/SOURCES.txt'
> reading manifest file 'zstandard.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'zstandard.egg-info/SOURCES.txt'
> running build_ext
> building 'zstandard.backend_c' extension
> x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ic-ext -I/usr/include/python3.11 -c c-ext/backend_c.c -o build/temp.linux-x86_64-cpython-311/c-ext/backend_c.o -DZSTD_MULTITHREAD -I/usr/include
> x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-cpython-311/c-ext/backend_c.o -L/usr/lib/x86_64-linux-gnu -lzstd -o /<<PKGBUILDDIR>>/zstandard/backend_c.cpython-311-x86_64-linux-gnu.so
> building 'zstandard._cffi' extension
> x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/zstd -I/usr/include/python3.11 -c build/zstandard/_cffi.c -o build/temp.linux-x86_64-cpython-311/build/zstandard/_cffi.o
> x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/<<PKGBUILDDIR>>/zstd -I/usr/include/python3.11 -c zstd/zstdlib.c -o build/temp.linux-x86_64-cpython-311/zstd/zstdlib.o
> x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-z,relro -Wl,-z,now -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-cpython-311/build/zstandard/_cffi.o build/temp.linux-x86_64-cpython-311/zstd/zstdlib.o -L/usr/lib/x86_64-linux-gnu -o /<<PKGBUILDDIR>>/zstandard/_cffi.cpython-311-x86_64-linux-gnu.so
> test_decompressor_stream_reader (unittest.loader._FailedTest.test_decompressor_stream_reader) ... ERROR
> test_decompressor_read_to_iter (unittest.loader._FailedTest.test_decompressor_read_to_iter) ... ERROR
> test_compressor_read_to_iter (unittest.loader._FailedTest.test_compressor_read_to_iter) ... ERROR
> test_compressor_chunker (unittest.loader._FailedTest.test_compressor_chunker) ... ERROR
> test_decompressor_fuzzing (unittest.loader._FailedTest.test_decompressor_fuzzing) ... ERROR
> test_data_structures (unittest.loader._FailedTest.test_data_structures) ... ERROR
> test_decompressor_decompress (unittest.loader._FailedTest.test_decompressor_decompress) ... ERROR
> test_compressor_copy_stream (unittest.loader._FailedTest.test_compressor_copy_stream) ... ERROR
> test_decompressor_decompressobj (unittest.loader._FailedTest.test_decompressor_decompressobj) ... ERROR
> test_estimate_sizes (unittest.loader._FailedTest.test_estimate_sizes) ... ERROR
> test_decompressor_multi_decompress_to_buffer (unittest.loader._FailedTest.test_decompressor_multi_decompress_to_buffer) ... ERROR
> test_decompressor_stream_writer (unittest.loader._FailedTest.test_decompressor_stream_writer) ... ERROR
> test_compressor (unittest.loader._FailedTest.test_compressor) ... ERROR
> test_data_structures_fuzzing (unittest.loader._FailedTest.test_data_structures_fuzzing) ... ERROR
> test_compressor_stream_reader (unittest.loader._FailedTest.test_compressor_stream_reader) ... ERROR
> test_decompressor (unittest.loader._FailedTest.test_decompressor) ... ERROR
> test_decompressor_copy_stream (unittest.loader._FailedTest.test_decompressor_copy_stream) ... ERROR
> test_module_attributes (unittest.loader._FailedTest.test_module_attributes) ... ERROR
> test_train_dictionary (unittest.loader._FailedTest.test_train_dictionary) ... ERROR
> test_compressor_compress (unittest.loader._FailedTest.test_compressor_compress) ... ERROR
> test_utility (unittest.loader._FailedTest.test_utility) ... ERROR
> test_compressor_multi_compress_to_buffer (unittest.loader._FailedTest.test_compressor_multi_compress_to_buffer) ... ERROR
> test_buffer_util (unittest.loader._FailedTest.test_buffer_util) ... ERROR
> test_compressor_compressobj (unittest.loader._FailedTest.test_compressor_compressobj) ... ERROR
> test_compressor_stream_writer (unittest.loader._FailedTest.test_compressor_stream_writer) ... ERROR
> test_open (unittest.loader._FailedTest.test_open) ... ERROR
> test_compressor_fuzzing (unittest.loader._FailedTest.test_compressor_fuzzing) ... ERROR
> test_decompressor_content_dict_chain (unittest.loader._FailedTest.test_decompressor_content_dict_chain) ... ERROR
>
> ======================================================================
> ERROR: test_decompressor_stream_reader (unittest.loader._FailedTest.test_decompressor_stream_reader)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_stream_reader
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_stream_reader.py", line 5, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_read_to_iter (unittest.loader._FailedTest.test_decompressor_read_to_iter)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_read_to_iter
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_read_to_iter.py", line 7, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_read_to_iter (unittest.loader._FailedTest.test_compressor_read_to_iter)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_read_to_iter
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_read_to_iter.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_chunker (unittest.loader._FailedTest.test_compressor_chunker)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_chunker
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_chunker.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_fuzzing (unittest.loader._FailedTest.test_decompressor_fuzzing)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_fuzzing
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_fuzzing.py", line 11, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_data_structures (unittest.loader._FailedTest.test_data_structures)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_data_structures
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_data_structures.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_decompress (unittest.loader._FailedTest.test_decompressor_decompress)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_decompress
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_decompress.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_copy_stream (unittest.loader._FailedTest.test_compressor_copy_stream)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_copy_stream
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_copy_stream.py", line 5, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_decompressobj (unittest.loader._FailedTest.test_decompressor_decompressobj)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_decompressobj
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_decompressobj.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_estimate_sizes (unittest.loader._FailedTest.test_estimate_sizes)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_estimate_sizes
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_estimate_sizes.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_multi_decompress_to_buffer (unittest.loader._FailedTest.test_decompressor_multi_decompress_to_buffer)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_multi_decompress_to_buffer
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_multi_decompress_to_buffer.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_stream_writer (unittest.loader._FailedTest.test_decompressor_stream_writer)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_stream_writer
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_stream_writer.py", line 7, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor (unittest.loader._FailedTest.test_compressor)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_data_structures_fuzzing (unittest.loader._FailedTest.test_data_structures_fuzzing)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_data_structures_fuzzing
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_data_structures_fuzzing.py", line 10, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_stream_reader (unittest.loader._FailedTest.test_compressor_stream_reader)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_stream_reader
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_stream_reader.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor (unittest.loader._FailedTest.test_decompressor)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_copy_stream (unittest.loader._FailedTest.test_decompressor_copy_stream)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_copy_stream
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_copy_stream.py", line 5, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_module_attributes (unittest.loader._FailedTest.test_module_attributes)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_module_attributes
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_module_attributes.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_train_dictionary (unittest.loader._FailedTest.test_train_dictionary)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_train_dictionary
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_train_dictionary.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_compress (unittest.loader._FailedTest.test_compressor_compress)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_compress
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_compress.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_utility (unittest.loader._FailedTest.test_utility)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_utility
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_utility.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_multi_compress_to_buffer (unittest.loader._FailedTest.test_compressor_multi_compress_to_buffer)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_multi_compress_to_buffer
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_multi_compress_to_buffer.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_buffer_util (unittest.loader._FailedTest.test_buffer_util)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_buffer_util
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_buffer_util.py", line 4, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_compressobj (unittest.loader._FailedTest.test_compressor_compressobj)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_compressobj
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_compressobj.py", line 5, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_stream_writer (unittest.loader._FailedTest.test_compressor_stream_writer)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_stream_writer
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_stream_writer.py", line 8, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_open (unittest.loader._FailedTest.test_open)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_open
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_open.py", line 6, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_compressor_fuzzing (unittest.loader._FailedTest.test_compressor_fuzzing)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_compressor_fuzzing
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_compressor_fuzzing.py", line 11, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ======================================================================
> ERROR: test_decompressor_content_dict_chain (unittest.loader._FailedTest.test_decompressor_content_dict_chain)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test_decompressor_content_dict_chain
> Traceback (most recent call last):
> File "/usr/lib/python3.11/unittest/loader.py", line 154, in loadTestsFromName
> module = __import__(module_name)
> ^^^^^^^^^^^^^^^^^^^^^^^
> File "/<<PKGBUILDDIR>>/tests/test_decompressor_content_dict_chain.py", line 3, in <module>
> import zstandard as zstd
> File "/<<PKGBUILDDIR>>/zstandard/__init__.py", line 39, in <module>
> from .backend_c import * # type: ignore
> ^^^^^^^^^^^^^^^^^^^^^^^^
> ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10504 hardcoded in zstd headers, 10502 hardcoded in the cext)
>
>
> ----------------------------------------------------------------------
> Ran 28 tests in 0.004s
>
> FAILED (errors=28)
> Test failed: <unittest.runner.TextTestResult run=28 errors=28 failures=0>
> error: Test failed: <unittest.runner.TextTestResult run=28 errors=28 failures=0>
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: python3.11 setup.py test
> dh_auto_test: error: pybuild --test -i python{version} -p 3.11 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/02/16/python-zstandard_0.19.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230216;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230216&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

James Addison

unread,
Feb 17, 2023, 9:20:04 AM2/17/23
to
Package: python3-zstandard
Followup-For: Bug #1031443
Control: affects -1 = src:python-scrapy src:libzstd src:rpmlint src:python-zstandard
Control: merge -1 1031293

James Addison

unread,
Feb 17, 2023, 12:50:05 PM2/17/23
to
Package: python3-zstandard
Followup-For: Bug #1031443
Control: forcemerge -1 1031293 1031449

Nilesh Patra

unread,
Feb 20, 2023, 2:20:03 PM2/20/23
to
On Fri, 17 Feb 2023 07:51:48 +0100 Lucas Nussbaum <lu...@debian.org> wrote:
> Source: python-zstandard
> Version: 0.19.0-3
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lu...@debian.org
> Usertags: ftbfs-20230216 ftbfs-bookworm
>
> Hi,
>
> During a rebuild of all packages in sid, your package failed to build
> on amd64.

At the moment this is creating quite
the havoc with making a bunch of things FTBFS as well (see merhged bugs)

This is likely due to py-zst trying to link with the zstandard in the archive
which does not seem to go very well.

Is someone working to fix this?

--
Best,
Nilesh
signature.asc

Boyuan Yang

unread,
Feb 20, 2023, 5:33:00 PM2/20/23
to
Hi,

在 2023-02-21星期二的 00:38 +0530,Nilesh Patra写道:
Thanks for cc-ing. I did not monitor bugs for this package before.

Upstream just released v0.20.0 targeting libzstd 1.5.4. I will try it out
and have it packaged.

On the long run, the mismatch of src:libzstd and src:python-zstandard will
always occur intermittently due to its nature. I am not sure whether re-
enabling bundled libzstd would be a good choice, but at least let's fix the
combination for Debian 12 first.

Any suggestions?

Thanks,
Boyuan Yang
signature.asc

Peter Pentchev

unread,
Feb 20, 2023, 6:31:51 PM2/20/23
to
On Tue, Feb 21, 2023 at 12:39:53AM +0200, Peter Pentchev wrote:
> Oof. Sorry about that. I guess I didn't consider the python-zstandard
> package at all until now.
>
> As I am a member of both the pkg-rpm and pkg-python teams, I could try to
> update the packages in sync from now on, possibly adding something like
> Breaks: python-zstandard (<< version-I-am-about-to-upload-in-sync) to
> libzstd itself if it breaks the then-current python-zstandard package.

(of course, I meant Breaks: python3-zstandard (<< ...))

...of course, another - or rather, an additional - option would be to
relax (or remove) the check that python-zstandard makes regarding
the libzstd version recorded at compile time. Since both libzstd
upstream and the Debian package tries to hold true to the usual
semver-like compatiblity scheme, python-zstandard ought to be able to
believe that even a more recent version of libzstd would be ABI-compatible
unless it has reason to think otherwise - and that case could be handled
by Breaks: python3-zstandard (<< next-version) in libzstd as outlined
above. So maybe (for future new upstream versions of libzstd):
- relax (or remove) the python3-zstandard check for the libzstd version
- each time a new libzstd upload is about to be done, check that
python3-zstandard works, too
- if it works, do nothing else, upload libzstd as usual
- if python3-zstandard would for some reason break and needs updating,
hold off with the libzstd upload until an updated version of
python3-zstandard is released upstream, make sure it will work, and
only then upload libzstd with a Breaks declaration
- upload the updated version of python3-zstandard immediately (maybe
even simultaneously) and declare a Depends relationship on
the just-uploaded version of libzstd (as it does now)

If this sounds good, I believe I can do it that way for future libzstd
uploads.

G'luck,
Peter

--
Peter Pentchev ro...@ringlet.net ro...@debian.org p...@storpool.com
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
0 new messages