0

I have used pip to install JupyterLab on my machine that runs Pop!_OS. The installation succeeds, but when I attempt to run the program, I get this error:

Traceback (most recent call last):
  File "/home/foof/.local/bin/jupyter-lab", line 5, in <module>
    from jupyterlab.labapp import main
  File "/home/foof/.local/lib/python3.10/site-packages/jupyterlab/labapp.py", line 11, in <module>
    from jupyter_core.application import JupyterApp, NoStart, base_aliases, base_flags
  File "/home/foof/.local/lib/python3.10/site-packages/jupyter_core/application.py", line 16, in <module>
    from traitlets import Bool, List, Unicode, observe
  File "/home/foof/.local/lib/python3.10/site-packages/traitlets/__init__.py", line 5, in <module>
    from ._version import __version__, version_info
  File "/home/foof/.local/lib/python3.10/site-packages/traitlets/_version.py", line 7, in <module>
    assert __version__ == (
AssertionError

I have reinstalled Python and pip but always get the same error. Any pointers?

Blindspots
  • 3,472
Linter
  • 121

1 Answers1

0

Looks like the answer is to change the traitlets version by editing

~/.local/lib/python3.10/site-packages/traitlets/_version.py 

to read:

version_info = (5, 2, 2)
__version__ = "5.2.2"
Linter
  • 121