Friends
I have downloaded latest Patchbox OS and installed on a Raspberry Pi 5
Boots fine
Added modep
modules from patchbox
(I had to do and update and full-upgrade
before that worked)
Now mod-ui
apears to be not working
tl;dr How is it possible to run mod-ui
with python3 V 3.11?
mod-ui` is in Python dependency hell and requires Python3 <= 3.10, or so I thought.
patch@patchbox:~ $ sudo systemctl status modep-mod-ui
● modep-mod-ui.service - MOD-UI
Loaded: loaded (/lib/systemd/system/modep-mod-ui.service; enabled; preset: enabled)
Active: active (running) since Sat 2024-10-12 22:51:48 BST; 11min ago
Main PID: 52412 (mod-ui)
Tasks: 3 (limit: 9248)
CPU: 375ms
CGroup: /system.slice/modep-mod-ui.service
└─52412 /usr/bin/python3 /usr/bin/mod-ui
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] sending -> state_load /var/modep/pedalboards/default.pedalboard
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] popped from queue: feature_enable processing 2
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] sending -> feature_enable processing 2
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] received as response <- 'resp 0\x00'
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] popped from queue: remove 9993
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] sending -> remove 9993
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] received as response <- 'resp 0\x00'
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] popped from queue: transport_sync none
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] sending -> transport_sync none
Oct 12 22:51:49 patchbox authbind[52412]: DEBUG:root:[host] received as response <- 'resp 0\x00'
That looks like it is working, but there is nothing at port 8888
Running journalctl -u modep-mod-ui
while systemctl restart modep-mod-ui
gives:
Oct 12 23:08:10 patchbox systemd[1]: Stopping modep-mod-ui.service - MOD-UI...
Oct 12 23:08:10 patchbox systemd[1]: modep-mod-ui.service: Deactivated successfully.
Oct 12 23:08:10 patchbox systemd[1]: Stopped modep-mod-ui.service - MOD-UI.
Oct 12 23:08:10 patchbox systemd[1]: Started modep-mod-ui.service - MOD-UI.
Oct 12 23:08:10 patchbox authbind[53702]: DEBUG:root:[host] popped from queue: transport 0 4.000000 120.000000
Oct 12 23:08:10 patchbox authbind[53702]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory
Oct 12 23:08:10 patchbox authbind[53702]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for MODDUO
Oct 12 23:08:10 patchbox authbind[53702]: ERROR:tornado4.application:Uncaught exception, closing connection.
Oct 12 23:08:10 patchbox authbind[53702]: Traceback (most recent call last):
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 562, in wrapper
Oct 12 23:08:10 patchbox authbind[53702]: return callback(*args)
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/stack_context.py", line 277, in null_wrapper
Oct 12 23:08:10 patchbox authbind[53702]: return fn(*args, **kwargs)
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/mod/host.py", line 1217, in reader_check_response
Oct 12 23:08:10 patchbox authbind[53702]: self.process_read_queue()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/mod/host.py", line 1874, in process_read_queue
Oct 12 23:08:10 patchbox authbind[53702]: self.readsock.read_until(b"\0", self.process_read_message)
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 289, in read_until
Oct 12 23:08:10 patchbox authbind[53702]: self._try_inline_read()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 709, in _try_inline_read
Oct 12 23:08:10 patchbox authbind[53702]: self._check_closed()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 925, in _check_closed
Oct 12 23:08:10 patchbox authbind[53702]: raise StreamClosedError(real_error=self.error)
Oct 12 23:08:10 patchbox authbind[53702]: tornado.iostream.StreamClosedError: Stream is closed
Oct 12 23:08:10 patchbox authbind[53702]: ERROR:tornado4.application:Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x7fffbc230e00>)
Oct 12 23:08:10 patchbox authbind[53702]: Traceback (most recent call last):
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/ioloop.py", line 605, in _run_callback
Oct 12 23:08:10 patchbox authbind[53702]: ret = callback()
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/stack_context.py", line 277, in null_wrapper
Oct 12 23:08:10 patchbox authbind[53702]: return fn(*args, **kwargs)
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 562, in wrapper
Oct 12 23:08:10 patchbox authbind[53702]: return callback(*args)
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/stack_context.py", line 277, in null_wrapper
Oct 12 23:08:10 patchbox authbind[53702]: return fn(*args, **kwargs)
Oct 12 23:08:10 patchbox authbind[53702]: ^^^^^^^^^^^^^^^^^^^
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/mod/host.py", line 1217, in reader_check_response
Oct 12 23:08:10 patchbox authbind[53702]: self.process_read_queue()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/mod/host.py", line 1874, in process_read_queue
Oct 12 23:08:10 patchbox authbind[53702]: self.readsock.read_until(b"\0", self.process_read_message)
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 289, in read_until
Oct 12 23:08:10 patchbox authbind[53702]: self._try_inline_read()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 709, in _try_inline_read
Oct 12 23:08:10 patchbox authbind[53702]: self._check_closed()
Oct 12 23:08:10 patchbox authbind[53702]: File "/usr/lib/python3/dist-packages/tornado4/iostream.py", line 925, in _check_closed
Oct 12 23:08:10 patchbox authbind[53702]: raise StreamClosedError(real_error=self.error)
Oct 12 23:08:10 patchbox authbind[53702]: tornado.iostream.StreamClosedError: Stream is closed
Oct 12 23:08:10 patchbox authbind[53702]: DEBUG:root:[host] popped from queue: feature_enable processing 0
Oct 12 23:08:10 patchbox authbind[53702]: DEBUG:root:[host] sending -> feature_enable processing 0
Oct 12 23:08:10 patchbox authbind[53702]: ERROR: Failed to open HMI serial port, error was:
Oct 12 23:08:10 patchbox authbind[53702]: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Oct 12 23:08:10 patchbox authbind[53702]: Using FakeHMI => <mod.development.FakeHMI object at 0x7fffbc58acd0>
Oct 12 23:08:10 patchbox authbind[53702]: cc start socket missing
Oct 12 23:08:10 patchbox authbind[53702]: last state file does not exist or is corrupt
Oct 12 23:08:10 patchbox authbind[53702]: Readsock none
Oct 12 23:08:10 patchbox authbind[53702]: Host failed to initialize, is the backend running?
Oct 12 23:08:10 patchbox authbind[53702]: jack client activated
Oct 12 23:08:10 patchbox authbind[53702]: jack client deactivated
Oct 12 23:08:11 patchbox authbind[53702]: jack client deactivated NOT
Oct 12 23:08:11 patchbox systemd[1]: modep-mod-ui.service: Main process exited, code=exited, status=1/FAILURE
Oct 12 23:08:11 patchbox systemd[1]: modep-mod-ui.service: Failed with result 'exit-code'.
Oct 12 23:08:13 patchbox systemd[1]: modep-mod-ui.service: Scheduled restart job, restart counter is at 1.
Oct 12 23:08:13 patchbox systemd[1]: Stopped modep-mod-ui.service - MOD-UI.
Oct 12 23:08:13 patchbox systemd[1]: Started modep-mod-ui.service - MOD-UI.
Oct 12 23:08:13 patchbox authbind[53707]: DEBUG:root:[host] popped from queue: transport 0 4.000000 120.000000
Oct 12 23:08:13 patchbox authbind[53707]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory
Oct 12 23:08:13 patchbox authbind[53707]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for MODDUO
Oct 12 23:08:13 patchbox authbind[53707]: DEBUG:root:[host] popped from queue: feature_enable processing 0
Oct 12 23:08:13 patchbox authbind[53707]: DEBUG:root:[host] sending -> feature_enable processing 0
Oct 12 23:08:13 patchbox authbind[53707]: ERROR: Failed to open HMI serial port, error was:
Oct 12 23:08:13 patchbox authbind[53707]: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Oct 12 23:08:13 patchbox authbind[53707]: Using FakeHMI => <mod.development.FakeHMI object at 0x7ffeef5cacd0>
Oct 12 23:08:13 patchbox authbind[53707]: cc start socket missing
Oct 12 23:08:13 patchbox authbind[53707]: last state file does not exist or is corrupt
Oct 12 23:08:13 patchbox authbind[53707]: Readsock none
Oct 12 23:08:13 patchbox authbind[53707]: Host failed to initialize, is the backend running?
Oct 12 23:08:13 patchbox authbind[53707]: jack client activated
Oct 12 23:08:13 patchbox authbind[53707]: jack client deactivated
Oct 12 23:08:13 patchbox authbind[53707]: jack client deactivated NOT
Oct 12 23:08:13 patchbox systemd[1]: modep-mod-ui.service: Main process exited, code=exited, status=1/FAILURE
Oct 12 23:08:13 patchbox systemd[1]: modep-mod-ui.service: Failed with result 'exit-code'.
Oct 12 23:08:15 patchbox systemd[1]: modep-mod-ui.service: Scheduled restart job, restart counter is at 2.
Oct 12 23:08:15 patchbox systemd[1]: Stopped modep-mod-ui.service - MOD-UI.
Oct 12 23:08:15 patchbox systemd[1]: Started modep-mod-ui.service - MOD-UI.
Oct 12 23:08:16 patchbox authbind[53711]: DEBUG:root:[host] popped from queue: transport 0 4.000000 120.000000
Oct 12 23:08:16 patchbox authbind[53711]: Failed to create secure directory (/nonexistent/.config/pulse): No such file or directory
Oct 12 23:08:16 patchbox authbind[53711]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for MODDUO
Oct 12 23:08:16 patchbox authbind[53711]: DEBUG:root:[host] popped from queue: feature_enable processing 0
Oct 12 23:08:16 patchbox authbind[53711]: DEBUG:root:[host] sending -> feature_enable processing 0
A lot of failure, none of which means much to me.
ERROR:tornado4.application:Uncaught exception, closing connection
It had two tries, failed.
Then a third go, looking like it gave up on tornado
.
Is this possible?