I have been working with a python program which uses sounddevice module to play audio. The program works fine in my office pc (running Ubuntu 17.10
sounddevice
I could fix this by installing the portaudio library.
sudo apt-get install libportaudio2
You may also try following if this doesn't help.
sudo apt-get install libasound-dev