summary
we’ve updated the Python grid studies to align with changes introduced between Python 3.5
(the version the previous text was written for) and 3.11.x
:
feel free to use this thread to ask questions and share your experiences! 
requirements
gratitude
-
@artfwo for providing multiple rounds of code review to ensure that the updated code examples represented best practices for Python scripting, including purposeful class and instance variables. it’s always remarkable when brilliant people are also incredibly kind to those who are still learning, a fantastic quality which Artem consistently exemplifies.
28 Likes
Hi friend,
I am experiencing a buffer-overflow behavior within the example code from
I am using VLC library to play example sounds as shown here:
python3 monome_key_api.py
triggered 5
triggered 5
triggered 4
triggered 4
triggered 4
triggered 4
triggered 5
triggered 5
triggered 4
triggered 4
triggered 4
triggered 4
triggered 5
triggered 5
triggered 4
triggered 4
triggered 4
triggered 4
triggered 2
triggered 5
triggered 5
triggered 4
triggered 4
triggered 2
triggered 4
triggered 4
triggered 2
[00005592faa13270] vlcpulse audio output error: PulseAudio server connection failure: Connection terminated
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection terminated
[00005592faa13270] alsa audio output error: cannot open ALSA device “default”: Connection refused
[00005592faa13270] main audio output error: Audio output failed
[00005592faa13270] main audio output error: The audio device “default” could not be used:
Connection refused.
[00005592faa13270] main audio output error: module not functional
[00007fd24400b0e0] main decoder error: failed to create audio output
Any ideas? Thanks in advance.
Edit: Definitely, the error comes from VLC itself.
Edit2: Solved using a library called subprocess.