music_led_strip_control
music_led_strip_control copied to clipboard
Master branch doesnt work - IndexError: list index out of range in init_audio_service:
When trying to start the application after running the automatic script I get the following error:
I have attached a microphone to the pi
I am on a rpi 4b, 128gb sd, latest rpi lite 64 bit
INFO - __main__ - Initializing MLSC...
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi:1
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi:1
INFO - __main__ - Initialization finished.
INFO - __main__ - MLSC started...
INFO - libs.audio_process_service - Found the following audio sources:
ERROR - libs.audio_process_service - ********************************************************
ERROR - libs.audio_process_service - * Error *
ERROR - libs.audio_process_service - ********************************************************
ERROR - libs.audio_process_service - Could not find the mic with the id: 0
ERROR - libs.audio_process_service - Using the first mic as fallback.
ERROR - libs.audio_process_service - Please change the id of the mic inside the config.
ERROR - libs.audio_process_service - Could not init AudioService.
ERROR - libs.audio_process_service - Unexpected error in init_audio_service: list index out of range
Traceback (most recent call last):
File "/share/music_led_strip_control/server/libs/audio_process_service.py", line 86, in init_audio_service
self.selected_device = self._devices[0]
IndexError: list index out of range
Process Process-3:
Traceback (most recent call last):
File "/usr/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/share/music_led_strip_control/server/libs/webserver/webserver.py", line 83, in start
serve(self.server, host='0.0.0.0', port=webserver_port, threads=8)
File "/usr/local/lib/python3.9/dist-packages/waitress/__init__.py", line 13, in serve
server = _server(app, **kw)
File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 78, in create_server
last_serv = TcpWSGIServer(
File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 244, in __init__
self.bind_server_socket()
File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 361, in bind_server_socket
self.bind(sockaddr)
File "/usr/local/lib/python3.9/dist-packages/waitress/wasyncore.py", line 396, in bind
return self.socket.bind(addr)
OSError: [Errno 98] Address already in use