I installed PyQt4 on Ubuntu 14.04 via conda. All the GUI library is working but no output devices are found, so I get no audio output, using PyQt4.QtMultimedia (or PyQt4.QtGui.QSound).
A sample script describing the situation:
from PyQt4.QtMultimedia import QAudioDeviceInfo
device_info = QAudioDeviceInfo.defaultOutputDevice()
if device_info.isNull():
print 'No output audio device found' # always executed
else:
print device_info # never executed
Finding an audio output device is obviously required to play audio with PyQt4 (as I've verified).
In general, with my Ubuntu, I can listen audio and music, so is not and hardware problem.
In Windows and OS X the same code do find an audio device.
How could I solve this problem?