Source: python-pydub
Version: 0.25.1-1
Severity: normal
User: debian-pyt...@lists.debian.org
Usertags: python3.13
Forwarded: https://github.com/jiaaro/pydub/issues/725

This package failed build from source when test-built against a version of
python3-defaults that includes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html
audioop was removed in 3.13.

Log snippet:

   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build; 
python3.13 -m unittest discover -v 
pydub (unittest.loader._FailedTest.pydub) ... ERROR

======================================================================
ERROR: pydub (unittest.loader._FailedTest.pydub)
----------------------------------------------------------------------
ImportError: Failed to import test module: pydub
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build/pydub/utils.py", 
line 14, in <module>
    import audioop
ModuleNotFoundError: No module named 'audioop'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
  File "/usr/lib/python3.13/unittest/loader.py", line 339, in 
_get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build/pydub/__init__.py", 
line 1, in <module>
    from .audio_segment import AudioSegment
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build/pydub/audio_segment.py", 
line 11, in <module>
    from .utils import mediainfo_json, fsdecode
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build/pydub/utils.py", 
line 16, in <module>
    import pyaudioop as audioop
ModuleNotFoundError: No module named 'pyaudioop'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pydub/build; python3.13 -m unittest 
discover -v 
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pydub/build; 
python3.12 -m unittest discover -v 

----------------------------------------------------------------------
Ran 0 tests in 0.000s

NO TESTS RAN
dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned 
exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-19T06:20:56Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/787690/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

Reply via email to