Closed HannesMorre closed 3 months ago
@HannesMorre I can reproduce it. It's most likely a consequence of a missing setting in one of your config files. Either replace the user/internal_part_number.yaml
with this one: https://github.com/sparkmicro/Ki-nTree/blob/main/kintree/config/user/internal_part_number.yaml
Or, if you don't want to overwrite your own settings, open your user/internal_part_number.yaml
and add the line:
IPN_USE_MANUFACTURER_PART_NUMBER: false
@eeintech can you fix this in the next release?
@T0jan That works, thanks!
@eeintech can you fix this in the next release?
Sure this issue could be prevented, reopening issue to not forget.
@eeintech should be doable with hard coding default states in the settings loading routine but maybe there is an more elegant, not so maintenance heavy way?
@T0jan The default parameters should be loaded from the .yaml
files in the repo so maybe that setting was missing. Any new parameter should also be added to those files to prevent errors like this. I don't see any reason not to hardcode it though.
@eeintech if it loads the repo config files than this shouldn't be at all and would be better to maintain, as it would be only one point of required changes. however, are you sure this is happening rn? last time I checked the settings code it was only loading the local config files.
@T0jan It should be done with this section of the code: https://github.com/sparkmicro/Ki-nTree/blob/a5af2f83926b6d424d6b8113bdccaf255a62de55/kintree/config/config_interface.py#L71
But if the length of the dictionaries are different, it won't merge the template data.
@eeintech Ah I see but yeah, like this it doesn't really help if there was a new setting introduced in the last update. Maybe this check should loop through the loaded parameters instead and merge/add the entries individually?
@eeintech Ah I see but yeah, like this it doesn't really help if there was a new setting introduced in the last update. Maybe this check should loop through the loaded parameters instead and merge/add the entries individually?
Could be done yeah, probably more robust!
I think this was fixed with #251 (v1.1.2), closing.
I just updated to kintree 1.1.0 and I only get an error on startup