Skip to content

[Errno -9999] Unanticipated host error #2

Description

@thelabcat

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```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions