python-beat-detector
python-beat-detector copied to clipboard
[Errno -9999] Unanticipated host error
I have trimmed out all of the PyQt4 code because an apparent change since you wrote this is causing a hiccup, and I am unfamiliar with Qt4 so I can't fix it, but now I get this error instead:
Traceback (most recent call last):
File "/usr/lib64/python3.12/threading.py", line 1052, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.12/threading.py", line 989, in run
self._target(*self._args, **self._kwargs)
File "/home/wilbur/Downloads/python-beat-detector-master/recorder.py", line 55, in record
self.audio[i*self.BUFFERSIZE:(i+1)*self.BUFFERSIZE] = self.get_audio()
^^^^^^^^^^^^^^^^
File "/home/wilbur/Downloads/python-beat-detector-master/recorder.py", line 49, in get_audio
audio_string = self.in_stream.read(self.BUFFERSIZE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.12/site-packages/pyaudio/__init__.py", line 570, in read
return pa.read_stream(self._stream, num_frames,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno -9999] Unanticipated host error```