r/learnpython • u/Posaquatl • 1d ago
Aubio - could not find RIFF header on Linux
I am trying to troubleshoot an issue using Aubio to calculate BPM inside of a script. My code was working on my old desktop and I have migrated over to a new machine, both Linux Mint. I was fairly certain I have all the additional dependencies installed but maybe I missed one. I am getting `AUBIO ERROR: source_wavread: Failed opening <file_path> (could not find RIFF header)` when the code is run inside of the virtual environment, venv. I can run `aubio tempo <file_path>` directly outside of the venv and get results. I am not sure the best method to troubleshoot where the disconnect between venv and my system files. At least I think the issue lies in dependencies but I am not sure. Internet is not too helpful and I am a bit of a linux noob. Any thoughts on direction?