Can't open Jupyter Notebook

Hi,

I need help solving an issue I have where I can’t open Jupyter Notebook
I am getting the following error in my terminal

Traceback (most recent call last):
  File "/Users/user/Library/Python/3.9/bin/jupyter-notebook", line 5, in <module>
    from notebook.notebookapp import main
  File "/Users/user/Library/Python/3.9/lib/python/site-packages/notebook/notebookapp.py", line 80, in <module>
    from .services.contents.manager import ContentsManager
  File "/Users/user/Library/Python/3.9/lib/python/site-packages/notebook/services/contents/manager.py", line 17, in <module>
    from nbformat import sign, validate as validate_nb, ValidationError
  File "/Users/user/Library/Python/3.9/lib/python/site-packages/nbformat/sign.py", line 26, in <module>
    from traitlets import Any, Bool, Bytes, Callable, Enum, Instance, Integer, Unicode, default, observe
ImportError: cannot import name 'Callable' from 'traitlets' (/Users/user/Library/Python/3.9/lib/python/site-packages/traitlets/__init__.py)

When I run the following command jupyter --version
I get:
Selected Jupyter core packages…
IPython : 7.10.2
ipykernel : 6.21.3
ipywidgets : 8.0.4
jupyter_client : 8.0.3
jupyter_core : 5.2.0
jupyter_server : 2.4.0
jupyterlab : not installed
nbclient : not installed
nbconvert : not installed
nbformat : 5.7.3
notebook : 6.5.3
qtconsole : 5.4.0
traitlets : 4.3.3

More details:

  • I am on a Mac
  • I don’t have conda installed
  • I have Python and Python 3 installed

Please help :pray:,
Adi

It looks like you have an old traitlets version. And old IPython version. You may also be running an old Python version. Please update your versions :slight_smile:

1 Like