With RpiGpioSetup installed on an RPI, systemcalc is crashing in a section of code I have not modified:
2025-08-28 17:36:23.663803500 exit_on_error: there was an exception. Printing stacktrace will be tried and then exit
2025-08-28 17:36:23.669079500 Traceback (most recent call last):
2025-08-28 17:36:23.672823500 File "/opt/victronenergy/dbus-systemcalc-py/ext/velib_python/ve_utils.py", line 23, in exit_on_error
2025-08-28 17:36:23.672829500 return func(*args, **kwargs)
2025-08-28 17:36:23.672832500 ^^^^^^^^^^^^^^^^^^^^^
2025-08-28 17:36:23.673162500 File "/opt/victronenergy/dbus-systemcalc-py/delegates/relaystate.py", line 150, in _init_relay_state
2025-08-28 17:36:23.673168500 elif f < 0:
2025-08-28 17:36:23.673171500 ^^^^^
2025-08-28 17:36:23.674218500 TypeError: '<' not supported between instances of 'NoneType' and 'int'
What I have determined is if /etc/venus/gpio_list contains even one relay definition this crash occurs.
RpiGpioSetup DOES add relay definitions and has worked in firmware prior to v3.70~27. It also modifies relaystate.py (part of systemcalc) to add additional parameters to the get_settings (). However, even if I remove that change to relay state.py, systemcalc still crashes.
I am guessing there has been a change to the way relays are defined. Need some help here please.