Jupyter Notebook logging error

Hello, before report the problem I wanted know where is fit that problem I’m getting into it.

This problem happening when I start jupyter notebook.

--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
  File "/usr/lib64/python3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
  File "/home/osezer/python39_jupyter_venv/venv/lib64/python3.9/site-packages/tornado/log.py", line 198, in format
    formatted = self._fmt % record.__dict__
KeyError: 'highlevel'
Call stack:
  File "/home/osezer/python39_jupyter_venv/venv/bin/jupyter-notebook", line 8, in <module>
    sys.exit(main())
  File "/home/osezer/python39_jupyter_venv/venv/lib64/python3.9/site-packages/jupyter_core/application.py", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/home/osezer/python39_jupyter_venv/venv/lib64/python3.9/site-packages/traitlets/config/application.py", line 845, in launch_instance
    app.start()
  File "/home/osezer/python39_jupyter_venv/venv/lib64/python3.9/site-packages/notebook/notebookapp.py", line 2332, in start
    self.log.critical('\n'.join([
Message: '\n\nTo access the notebook, open this file in a browser:\n    file:///home/osezer/.local/share/jupyter/runtime/nbserver-890595-open.html\nOr copy and paste one of these URLs:\n    http://localhost:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88\n or http://127.0.0.1:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88'

This error start when code hit into formatted = self._fmt % record.__dict__ and when I decide to modify file and output of “record.dict” result is;

{'name': 'NotebookApp', 'msg': '\n\nTo access the notebook, open this file in a browser:\n    file:///home/osezer/.local/share/jupyter/runtime/nbserver-890595-open.html\nOr copy and paste one of these URLs:\n    http://localhost:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88\n or http://127.0.0.1:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88', 'args': (), 'levelname': 'CRITICAL', 'levelno': 50, 'pathname': '/home/osezer/python39_jupyter_venv/venv/lib64/python3.9/site-packages/notebook/notebookapp.py', 'filename': 'notebookapp.py', 'module': 'notebookapp', 'exc_info': None, 'exc_text': None, 'stack_info': None, 'lineno': 2332, 'funcName': 'start', 'created': 1628451501.4625936, 'msecs': 462.59355545043945, 'relativeCreated': 275.04777908325195, 'thread': 139786349971264, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 890595, 'message': '\n\nTo access the notebook, open this file in a browser:\n    file:///home/osezer/.local/share/jupyter/runtime/nbserver-890595-open.html\nOr copy and paste one of these URLs:\n    http://localhost:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88\n or http://127.0.0.1:9000/?token=c8c77d9b93beb4aefd9b531ea20d2953f9890c9b63182d88', 'asctime': '2021-08-08 22:38:21', 'color': '\x1b[35m', 'end_color': '\x1b(B\x1b[m'}

Error is coming from tornado, but I’m not sure is it tornado or jupyter-notebook issue. Any help about this problem would be awesome!

Python Version : 3.9
jupyter core : 4.7.0
jupyter-notebook : 6.1.6
qtconsole : 5.0.3
ipython : 7.20.0
ipykernel : 5.4.3
jupyter client : 6.1.11
jupyter lab : not installed
nbconvert : 6.0.7
ipywidgets : 7.6.3
nbformat : 5.0.8
traitlets : 5.0.5

Thank you.

I fixed by changing my config file. It has some error, after I reset the config file and re-check it is all fixed.

1 Like