It worked fine only yesterday, but today on a newly set up RPi, it no longer works.
There’s been an update to the Raspbian OS, so that is probably the underlying cause, which seems to be absence of the required audio drivers.
Below is the output where the script fails - it carries on similarly, then says ‘completed’ but obviously it has not.
I realise this may take some time to fully fix, but any suggestions or a quick workaround to get most things working (eg: without the noise level detection…)
Checking for python-rpi.gpio
Checking for libportaudio2
Installing missing packages: python-cffi libportaudio2
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libportaudio2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package python-cffi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python-cffi-backend
E: Package ‘python-cffi’ has no installation candidate
E: Package ‘libportaudio2’ has no installation candidate
apt uninstall -y python-cffi libportaudio2
zip_safe flag not set; analyzing archive contents…
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing libffi.pc' to the PKG_CONFIG_PATH environment variable No package 'libffi' found Package libffi was not found in the pkg-config search path. Perhaps you should add the directory containing
libffi.pc’
to the PKG_CONFIG_PATH environment variable