Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where, and what name the config file should be? #8

Open
W1Real opened this issue Oct 25, 2021 · 0 comments
Open

Where, and what name the config file should be? #8

W1Real opened this issue Oct 25, 2021 · 0 comments

Comments

@W1Real
Copy link

W1Real commented Oct 25, 2021

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant