Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

In v2.x.x, openplotter crash when ~/.signalk is missing #250

Open
FredericGuilbault opened this issue Mar 18, 2019 · 2 comments
Open

In v2.x.x, openplotter crash when ~/.signalk is missing #250

FredericGuilbault opened this issue Mar 18, 2019 · 2 comments

Comments

@FredericGuilbault
Copy link

FredericGuilbault commented Mar 18, 2019

On my install, signalk run under it's own user. So I don't have any ~/.signalK for the user of openplotter. This make openplotter crash like this:

Traceback (most recent call last):
  File "./openplotter", line 4157, in <module>
    MainFrame().Show()
  File "./openplotter", line 50, in __init__
    self.SK_settings = SK_settings()
  File "/var/www/openplotter/classes/SK_settings.py", line 28, in __init__
    self.load()
  File "/var/www/openplotter/classes/SK_settings.py", line 102, in load
    if not OPcan: self.data['pipedProviders'].append({'pipeElements': [{'type': 'providers/simple', 'options': {'logging': False, 'type': 'NMEA2000', 'subOptions': {'device': '/dev/ttyOP_', 'type': 'ngt-1'}}}], 'enabled': False, 'id': 'OPcan'})
KeyError: 'pipedProviders'
  1. it should not make openplotter crash,
  2. The Folder location variable should not imply every services that Openplotter manage run under the same user. (self.home+'/.signalk/settings.json')

This is what im gonna work on in the next days.

@FredericGuilbault
Copy link
Author

FredericGuilbault commented Mar 18, 2019

@FredericGuilbault
Copy link
Author

@sailoog inclasses/conf.py Should I use Conf or Conf2 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant