Hello,
I haven’t used the webconf much so maybe I missed something…
When I click on ‘save’ after I define a new map rule I get a 500 internal error.
Here is the traceback:
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/tornado/web.py”, line 1346, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “/usr/local/lib/python3.4/dist-packages/tornado/web.py”, line 2626, in wrapper
return method(self, *args, **kwargs)
File “/zynthian/zynthian-webconf/lib/midi_config_handler.py”, line 339, in post
zynconf.update_midi_profile(escaped_request_arguments, self.current_midi_profile_script)
File “/zynthian/zynthian-ui/zynconf/zynthian_config.py”, line 217, in update_midi_profile
save_config(midi_params, False, fpath)
File “/zynthian/zynthian-ui/zynconf/zynthian_config.py”, line 141, in save_config
logging.info(lines[add_row])
IndexError: list index out of range
ERROR:tornado.access:500 POST /api/ui-midi (10.42.0.1) 76.96ms
I also get a 500 error for other action (ex: create a new midi profile). Here is the traceback
File “/usr/local/lib/python3.4/dist-packages/tornado/web.py”, line 1346, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “/usr/local/lib/python3.4/dist-packages/tornado/web.py”, line 2626, in wrapper
return method(self, *args, **kwargs)
File “/zynthian/zynthian-webconf/lib/midi_config_handler.py”, line 314, in post
zynconf.update_midi_profile(escaped_request_arguments, new_profile_script_path)
File “/zynthian/zynthian-ui/zynconf/zynthian_config.py”, line 217, in update_midi_profile
save_config(midi_params, False, fpath)
File “/zynthian/zynthian-ui/zynconf/zynthian_config.py”, line 109, in save_config
with open(fpath) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/zynthian/zynthian-my-data/midi-profiles/map_notes.sh’
Any idea, please ?
Cheers,
Claude