Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: buffer size must be a multiple of element size #22

Open
MichielBontenbal opened this issue Aug 22, 2021 · 0 comments
Open

Comments

@MichielBontenbal
Copy link

At starting the script I get the following error in +/- 50% of the cases:

Exception in thread captor:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/git/OpenEars/devicehive-dev/audio/captor.py", line 93, in _capture
self._callback(capture_buf)
File "capture_mqtt.py", line 74, in _process
self._process_buf = np.frombuffer(data, dtype=np.int16)
ValueError: buffer size must be a multiple of element size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant