#1082047 FTBFS with Python 3.13

#1082047#5
Date:
2024-09-17 20:48:53 UTC
From:
To:
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

Log snippet:

test/test_audioread.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
audioread/__init__.py:123: in audio_open
    backends = available_backends()
audioread/__init__.py:80: in available_backends
    from . import rawread
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    # This file is part of audioread.
    # Copyright 2011, Adrian Sampson.
    #
    # Permission is hereby granted, free of charge, to any person obtaining
    # a copy of this software and associated documentation files (the
    # "Software"), to deal in the Software without restriction, including
    # without limitation the rights to use, copy, modify, merge, publish,
    # distribute, sublicense, and/or sell copies of the Software, and to
    # permit persons to whom the Software is furnished to do so, subject to
    # the following conditions:
    #
    # The above copyright notice and this permission notice shall be
    # included in all copies or substantial portions of the Software.

    """Uses standard-library modules to read AIFF, AIFF-C, and WAV files."""
audioread/rawread.py:16: ModuleNotFoundError

test/test_audioread.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
audioread/__init__.py:123: in audio_open
    backends = available_backends()
audioread/__init__.py:80: in available_backends
    from . import rawread
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    # This file is part of audioread.
    # Copyright 2011, Adrian Sampson.
    #
    # Permission is hereby granted, free of charge, to any person obtaining
    # a copy of this software and associated documentation files (the
    # "Software"), to deal in the Software without restriction, including
    # without limitation the rights to use, copy, modify, merge, publish,
    # distribute, sublicense, and/or sell copies of the Software, and to
    # permit persons to whom the Software is furnished to do so, subject to
    # the following conditions:
    #
    # The above copyright notice and this permission notice shall be
    # included in all copies or substantial portions of the Software.

    """Uses standard-library modules to read AIFF, AIFF-C, and WAV files."""
audioread/rawread.py:16: ModuleNotFoundError

test/test_audioread.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
audioread/__init__.py:123: in audio_open
    backends = available_backends()
audioread/__init__.py:80: in available_backends
    from . import rawread
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    # This file is part of audioread.
    # Copyright 2011, Adrian Sampson.
    #
    # Permission is hereby granted, free of charge, to any person obtaining
    # a copy of this software and associated documentation files (the
    # "Software"), to deal in the Software without restriction, including
    # without limitation the rights to use, copy, modify, merge, publish,
    # distribute, sublicense, and/or sell copies of the Software, and to
    # permit persons to whom the Software is furnished to do so, subject to
    # the following conditions:
    #
    # The above copyright notice and this permission notice shall be
    # included in all copies or substantial portions of the Software.

    """Uses standard-library modules to read AIFF, AIFF-C, and WAV files."""
audioread/rawread.py:16: ModuleNotFoundError

test/test_audioread.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
audioread/__init__.py:123: in audio_open
    backends = available_backends()
audioread/__init__.py:80: in available_backends
    from . import rawread
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    # This file is part of audioread.
    # Copyright 2011, Adrian Sampson.
    #
    # Permission is hereby granted, free of charge, to any person obtaining
    # a copy of this software and associated documentation files (the
    # "Software"), to deal in the Software without restriction, including
    # without limitation the rights to use, copy, modify, merge, publish,
    # distribute, sublicense, and/or sell copies of the Software, and to
    # permit persons to whom the Software is furnished to do so, subject to
    # the following conditions:
    #
    # The above copyright notice and this permission notice shall be
    # included in all copies or substantial portions of the Software.

    """Uses standard-library modules to read AIFF, AIFF-C, and WAV files."""
audioread/rawread.py:16: ModuleNotFoundError
=========================== short test summary info ============================
FAILED test/test_audioread.py::test_audioread_early_exit[test-1] - ModuleNotF...
FAILED test/test_audioread.py::test_audioread_early_exit[test-2] - ModuleNotF...
FAILED test/test_audioread.py::test_audioread_full[test-1] - ModuleNotFoundEr...
FAILED test/test_audioread.py::test_audioread_full[test-2] - ModuleNotFoundEr...
============================== 4 failed in 0.05s ===============================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_audioread/build; python3.13 -m pytest test
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_audioread/build; python3.12 -m pytest test
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_audioread/build
configfile: pyproject.toml
plugins: typeguard-4.3.0
collected 4 items

test/test_audioread.py ....                                              [100%]

=============================== warnings summary ===============================
test/test_audioread.py::test_audioread_early_exit[test-1]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_audioread/build/audioread/rawread.py:16: DeprecationWarning: 'aifc' is deprecated and slated for removal in Python 3.13
    import aifc

test/test_audioread.py::test_audioread_early_exit[test-1]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_audioread/build/audioread/rawread.py:17: DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13
    import audioop

test/test_audioread.py::test_audioread_early_exit[test-1]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_audioread/build/audioread/rawread.py:19: DeprecationWarning: 'sunau' is deprecated and slated for removal in Python 3.13
    import sunau

#1082047#14
Date:
2024-11-19 15:31:08 UTC
From:
To:
Hi!

According to the comment in the forwarded issue, as a workaround we
should package standard-aifc standard-sunau in Debian.

#1082047#21
Date:
2024-12-31 17:53:46 UTC
From:
To:
Hello,

Bug #1082047 in audioread reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/audioread/-/commit/927b4d09eb5d517687ef89d2baf570f0ffa17887
------------------------------------------------------------------------
(Build-)depend on python3-audioop-lts and python3-standard-sunau

Closes: #1082047
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1082047

#1082047#28
Date:
2024-12-31 19:20:14 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
audioread, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1082047@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated audioread package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 31 Dec 2024 17:52:10 +0000
Source: audioread
Architecture: source
Version: 3.0.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1082047
Changes:
 audioread (3.0.1-2) unstable; urgency=medium
 .
   [ Alexandre Detiste ]
   * add dependency on python3-standard-aifc
 .
   [ Colin Watson ]
   * (Build-)depend on python3-audioop-lts and python3-standard-sunau
     (Closes: #1082047)
Checksums-Sha1:
 71d31a99df07025b8ed60f64e93090238f2dc253 2342 audioread_3.0.1-2.dsc
 a540f35a0dc2683bdabfc5bd7bc1de27b4731787 3720 audioread_3.0.1-2.debian.tar.xz
Checksums-Sha256:
 9b065323e0acce2856e2f502231aab754c68088c968d074024473ce785a43752 2342 audioread_3.0.1-2.dsc
 879fca2962feb37b983e773b0176a7ebb79d096838f7739415d531497d57730c 3720 audioread_3.0.1-2.debian.tar.xz
Files:
 feb99e379a9827f5a1dcb6d3e22f5f13 2342 python optional audioread_3.0.1-2.dsc
 75ab0de2960b2400513f2df9600d30bd 3720 python optional audioread_3.0.1-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAmd0L6AACgkQOTWH2X2G
UAuM7w//UonsHm8hW6+1Op4Kws1cIL2FC+V7pwQ9azuXxyfDS36IrYJCfOcW/swy
FRUYAEMDIcTSy1yM4JnQHypy2OM2bwLPl7XAfpLii+8b8XT+h9rtKHDG2KDq6MMJ
rZWZCpXbEPBYvqwrid6HpE1WrOkScbSkQJeZ1gFbirE3/awxufjzUuv6i3Tt6Bte
jR47G7fyG93Wamkl0I2Z5neCn6NMGH7gmhhuZE9AK+lu1yy4J9hwsEMEdqN6IJO3
i4l1UqfV82KRIaz+oDj6ZdyR27VrsJ9d2FyauoKZNWLlN9Xmi5qMxKkWOQ8f/uJ8
SXSw1TMtEsx9pJNkoFH7F10kL6HxRUPWfCQXE0/pv/Hr3UkZ7woidUeYs5Y3y8OD
1QVmVhV2IcwMtyWul9DbLbMoYEUvBJvg6SunSZi+aVNTY6yl57LNScZ4EkyKh/01
RFMj8f2ystZuRRNyT9ASSdncfdWVN6rLN4eII6pWDrcKtju11dJs+80jfEaSPer1
Y2+qN6PTQQaq7ulVag0dCr3MxCzEUZPnlcW/R+dwA0kjrS/IIBEW3371uUw53/OY
nzUNqHi+2eW/02zqhgjjuXwOsEipLt1x1OMoRSZUs7UeHb8l7Y3iuTp/p9AeNV64
RTqUXTTxhqk+TDS9j1ct2SgJk4LSQdL+hs+6w11u9PPAipQ7xT4=
=JNml
-----END PGP SIGNATURE-----