streaming broken on Jammy

Bug #2051544 reported by Luka Juricic
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-pyaudio (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu release: Ubuntu 22.04.3 LTS
Package: python3-pyaudio 0.2.11-1.3ubuntu1

Running the "Play" example (https://people.csail.mit.edu/hubert/pyaudio/#examples) with a .wav will result in:

Traceback (most recent call last):
  File "/home/user/py-audio-test.py", line 26, in <module>
    stream.write(data)
  File "/usr/lib/python3/dist-packages/pyaudio.py", line 585, in write
    pa.write_stream(self._stream, frames, num_frames,
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

This is a known bug caused by a breaking change in Python 3.10 (https://stackoverflow.com/a/70358664), solved in version 0.2.12.
Version 0.2.14, installed from PyPi, has been tested working correctly on Ubuntu Jammy.

Could you please backport version 0.2.12+ to Ubuntu Jammy?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-pyaudio (Ubuntu):
status: New → Confirmed
Revision history for this message
Séverin Lemaignan (skadge) wrote :

for reference, I've been able to compile and run the mantic package (version 0.2.13) on jammy without trouble. So from a technical point of view, 'backporting' would really only require to bump the package version in jammy from 0.2.11 to 0.2.13

Revision history for this message
Séverin Lemaignan (skadge) wrote :

any chance the patch gets back-ported? `pyaudio` is currently unusable on Ubuntu 22.04...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.