Public bug reported:
I recently upgraded my system from 21.10 to 22.04 and a previous working
python program stopped working.
It uses the python3-pyaudio package, and its initialisation fails like
this:
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
A bit of searching came up with this stack overflow answer:
https://stackoverflow.com/a/70358664/164234
> Unfortunately, a breaking change was introduced in Python 3.10 (see bpo-40943
> and PEP-0353), and thus PyAudio needs updated.
>
> I've submitted a fix upstream, but as the project has not been updated since
> 2017, I'm not quite sure how quick it will get reviewed.
>
> In the meantime, you are free to build my fork from source and use that :)
The fix looks quite simple:
https://git.skeh.site/skeh/pyaudio/commit/2ee560056ec889ea7cd3ce1801b796b0939dd540
So might be something that you could carry as a fix.
** Affects: python-pyaudio (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1970912
Title:
python3-pyaudio fails with: PY_SSIZE_T_CLEAN macro must be defined for
'#' formats
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pyaudio/+bug/1970912/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs