No module named 'notebook.services'

I have just upgraded jupyter under python 3.12 with pip
IPython : 8.26.0
ipykernel : 6.29.5
ipywidgets : 8.1.3
jupyter_client : 8.6.2
jupyter_core : 5.7.2
jupyter_server : 2.14.2
jupyterlab : 4.2.4
nbclient : 0.10.0
nbconvert : 7.16.4
nbformat : 5.10.4
notebook : 7.2.1
qtconsole : 5.5.2
traitlets : 5.14.3

when I open jupyter or jupyter lab

I get:

from notebook.services.config import ConfigManager
ModuleNotFoundError: No module named 'notebook.services

this has been going on a long time and I can’t find much on the web.

thanks in advance

1 Like

It looks like some server extension is expecting notebook v6, but you have notebook v7.

In general a few of the versions listed are pretty outdated, maybe you upgraded just one of the packages but not all of them? By upgrading jupyter what do you mean precisely (what command did you use)?

What does pip check show?

2 Likes

thanks for looking into this.
It turns out that I was using a venv and modules were being imported from a system wide python installation.
solved that by going to a somewhat different linux distribution
thanks again

1 Like