Source: python-lz4
Version: 4.4.4+dfsg-2
Severity: normal
Tags: ftbfs upstream
User: [email protected]
Usertags: python3.14
Forwarded: https://github.com/python-lz4/python-lz4/pull/303

Python 3.14 is upon us, and we would like to enable it as a supported version 
in Debian.

This package fails to build with Python 3.14 as an available version. Graham 
Inggs did a test rebuild in Ubuntu and found this build failure. These can be 
reproduced in Debian by installing python3-all from experimental (but you may 
need to rebuild some dependencies by hand, first).

This looks like it was caused by Python reorganizing modules. Upstream 
has a PR to fix it: https://github.com/python-lz4/python-lz4/pull/303

Build log:
https://launchpadlibrarian.net/820395127/buildlog_ubuntu-questing-amd64.python-lz4_4.4.0+dfsg-2build1_BUILDING.txt.gz

Error:

lz4.frame (unittest.loader._FailedTest.lz4.frame) ... ERROR

======================================================================
ERROR: lz4.frame (unittest.loader._FailedTest.lz4.frame)
----------------------------------------------------------------------
ImportError: Failed to import test module: lz4.frame
Traceback (most recent call last):
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_lz4/build/lz4/frame/__init__.py", line 
28, in <module>
    import _compression   # Python 3.6 and later
    ^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_compression'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/loader.py", line 460, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.14/unittest/loader.py", line 367, in 
_get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_lz4/build/lz4/frame/__init__.py", line 
30, in <module>
    from . import _compression
ImportError: cannot import name '_compression' from partially initialized 
module 'lz4.frame' (most likely due to a circular import) 
(/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_lz4/build/lz4/frame/__init__.py)

Reply via email to