togglore icon indicating copy to clipboard operation
togglore copied to clipboard

Where, and what name the config file should be?

Open W1Real opened this issue 4 years ago • 0 comments

Windows 10

  • Cmd as administrator & as user
  • I tried C:\Users\Lucas\.togglore
  • I tried to config.ini, config, configfile, config.cfg inside of the togglore folder (where init.py is)

But it throws me this error independently of what I do:

python run.py today
Traceback (most recent call last):
  File "run.py", line 27, in <module>
    client = togglore.Togglore()
  File "G:\onedrive\onenote_companion_files\code_notes\clock\togglore\togglore\__init__.py", line 11, in __init__
    self.cfg = config.Config.read_from_file(config_path)
  File "G:\onedrive\onenote_companion_files\code_notes\clock\togglore\togglore\config.py", line 27, in read_from_file
    api_key = cfg['Authentication']['API_KEY']
  File "C:\Python38\lib\configparser.py", line 960, in __getitem__   
    raise KeyError(key)
KeyError: 'Authentication'

W1Real avatar Oct 25 '21 17:10 W1Real