This Github has a project that attempts to install sounddevice and use it within Python3
The Dockerfile and other associated files suffice to create an image that downloads into my Rpi.
The goal is to be able to import sounddevice into Python3 and execute various commands.
After much fiddling, the image loads and if I start Python3 from the Balena-cloud terminal window, the Rpi runs sounddevice examples. Great.
But, if I try to directly execute a python3 script via python3 playFile.py or ./playFile the Rpi fails play the wav file (via the Rpi output jack).
My question is: Why should it run if the code is pasted into python3 via the balena-cloud terminal window but not run when invoked via python3 followed by the script name or ./ followed by the script name.
Thanks for any suggestions,