Jupyterlab won't open following navigator update

I’m running UBUNTU on Window11
I ran anaconda-navigator, then Jupyterlab and had no issues.
Updated anaconda-navigator to version 2.5.4 then tried to run Jupyterlab.
Updated Jupyterlab to version 4.0.11 (highest it will let me go). I also tried selecting and earlier version of Jupyterlab, but had the same problem.
I received the following error.
I tried installing pysqlite2, using PIP3 and CONDA but I can’t find the module.
conda list show pysqlite3, but not pysqlite2.
Jupyternotbook has the same error.
(short version) ModuleNotFoundError: No module named ‘pysqlite2’
(Long version)
Traceback (most recent call last):
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyter_server/services/sessions/sessionmanager.py”, line 14, in
import sqlite3
File “/home/rlavera/anaconda3/lib/python3.11/sqlite3/init.py”, line 57, in
from sqlite3.dbapi2 import *
File “/home/rlavera/anaconda3/lib/python3.11/sqlite3/dbapi2.py”, line 27, in
from _sqlite3 import *
ImportError: /home/rlavera/anaconda3/lib/python3.11/lib-dynload/_sqlite3.cpython-311-x86_64-linux-gnu.so: undefined symbol: sqlite3_deserialize

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/rlavera/anaconda3/bin/jupyter-lab”, line 7, in
from jupyterlab.labapp import main
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyterlab/init.py”, line 8, in
from .handlers.announcements import (
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyterlab/handlers/announcements.py”, line 15, in
from jupyterlab_server.translation_utils import translator
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyterlab_server/init.py”, line 6, in
from .app import LabServerApp
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyterlab_server/app.py”, line 10, in
from jupyter_server.extension.application import ExtensionApp, ExtensionAppJinjaMixin
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyter_server/extension/application.py”, line 17, in
from jupyter_server.serverapp import ServerApp
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyter_server/serverapp.py”, line 107, in
from jupyter_server.gateway.managers import (
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyter_server/gateway/managers.py”, line 33, in
from ..services.sessions.sessionmanager import SessionManager
File “/home/rlavera/anaconda3/lib/python3.11/site-packages/jupyter_server/services/sessions/sessionmanager.py”, line 17, in
from pysqlite2 import dbapi2 as sqlite3 # type:ignore[no-redef]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named ‘pysqlite2’

Hello @Ron2,

Sorry to hear you’re running into issues with your setup!

After reviewing the logs, it appears that your Jupyter Server version is still using pysqlite2, a wrapper around SQLite that’s no longer included with modern Python versions.

Here are a couple of suggestions that might help resolve the issue:

  1. Keep your current environment: You can try installing libsqlite3-dev by running:
sudo apt-get install libsqlite3-dev
  1. Upgrade Navigator: Consider installing the latest version of Navigator (2.6.5). This upgrade will allow you to use more recent JupyterLab versions (>=4.3), potentially resolving your issue.

I hope these suggestions help! Let me know if you need further assistance.