Bug 32848 - Mageia depot must be updated to python3-pyAudio 0.2.14
Summary: Mageia depot must be updated to python3-pyAudio 0.2.14
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-02-14 18:42 CET by Gilles Allard
Modified: 2024-02-19 18:36 CET (History)
1 user (show)

See Also:
Source RPM: python-pyaudio-0.2.11-6.mga9.src.rpm
CVE:
Status comment:


Attachments
File to prove the error (659 bytes, text/x-python3)
2024-02-17 18:08 CET, papoteur
Details

Description Gilles Allard 2024-02-14 18:42:13 CET
English follow.
La version 0.2.11 de pyAudio fournie dans les dépots de Mageia est désuète et ne fonctionne pas depuis Python 3.10.
pypi.org et Debian fournissent 0.2.14
Une mise à jour s'impose. 

Description of problem:
Mageia repo supply pyAudio 0.2.9 but that version is broken since Python 3.10
pypi.org is supplying 0.2.14 since november 2023
Debian is also supplying 0.2.14
An updated version of python3-pyaudio is required.
Symptom: "PY_SSIZE_T_CLEAN macro must be defined for '#' formats"
Version-Release number of selected component (if applicable):

0.2.11
How reproducible:
Easy. Start pyAudio with Python 3.10


Steps to Reproduce:
1.
2.
3.
Comment 1 Lewis Smith 2024-02-14 20:30:59 CET
Thank you for this helpful report.

We do have v0.2.14 in Cauldron; it needs pushing to Mgeia 9.
Assigning to papoteur who did that.

Assignee: bugsquad => yvesbrungard
Source RPM: (none) => python-pyaudio-0.2.11-6.mga9.src.rpm

Comment 2 papoteur 2024-02-14 21:05:06 CET
Bonjour,
Je ne reproduis pas le problème.
Qu'entends-tu par démarrer pyAudio ?
pyAudio
bash: pyAudio: commande inconnue...

I do not reproduce the problem.
What do you mean with start pyAudio?
Comment 3 papoteur 2024-02-17 18:08:42 CET
Created attachment 14393 [details]
File to prove the error

When running this test script, we get an error:
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Traceback (most recent call last):
  File "/home/yves/Documents/test.py", line 45, in <module>
    import time; time.sleep(1)
SystemError

The update should get rid of this error.
Comment 4 papoteur 2024-02-17 21:00:51 CET
Source:
python-pyaudio-0.2.14-1.mga9
RPMS:
python3-pyaudio-0.2.14-1.mga9

Assignee: yvesbrungard => qa-bugs

katnatek 2024-02-18 01:57:36 CET

Keywords: (none) => advisory

Comment 5 katnatek 2024-02-18 02:10:44 CET
Tested in real hardware mageia 9 x86_64

After install python3-pyaudio and python3-matplotlib to can run the test script

Current version of python3-pyaudio

ython test_FFT_MGA.py 
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Traceback (most recent call last):
  File "/home/katnatek/Descargas/test_FFT_MGA.py", line 30, in <module>
    import time; time.sleep(1)
SystemError

After update to testing version

python test_FFT_MGA.py 
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:877:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:482:(_snd_pcm_usb_stream_open) Invalid card 'card'
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
> /home/katnatek/Descargas/test_FFT_MGA.py(32)<module>()
-> pass
(Pdb)

Whiteboard: (none) => MGA9-64-OK
Keywords: (none) => feedback

Comment 6 katnatek 2024-02-18 02:12:25 CET Comment hidden (obsolete)
Comment 7 katnatek 2024-02-18 02:15:08 CET Comment hidden (obsolete)
katnatek 2024-02-18 18:08:19 CET

Keywords: advisory, feedback => (none)

katnatek 2024-02-18 18:11:03 CET

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 8 Mageia Robot 2024-02-19 18:36:22 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0060.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.