joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Bug: KeyError: 'log_file' #70

Closed cgahr closed 1 year ago

cgahr commented 1 year ago

Hi,

running one of

causes the following error:

23:20:29 CRITICAL Uncaught exception                                                                                                                                   euporie.core.log.handle_exception:425                  Traceback (most recent call last):
    File "/home/<user>/.local/bin/euporie", line 8, in <module>
      sys.exit(main())
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/__main__.py", line 10, in main
      return entry.load().launch()
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/launch.py", line 29, in launch
      cls.config.load(cls)
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/config.py", line 374, in load
      setup_logs(self)
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/log.py", line 288, in setup_logs
      log_file_is_stdout = config.log_file in ("-", "/dev/stdout")
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/config.py", line 549, in __getattr__
      return self.get(name)
    File "/home/<user>/.local/pipx/venvs/euporie/lib/python3.10/site-packages/euporie/core/config.py", line 521, in get
      return self.settings[name].value
  KeyError: 'log_file'

The commands

I installed using

pipx install 'euporie[hub]'
joouha commented 1 year ago

Thanks for reporting this.

This should now be fixed in the dev branch by a126be0fa9bd0f64d02edc57a69bbbc0507155c8.

I'll publish a new release with the fix soon.

joouha commented 1 year ago

This fix was released in v2.4.0