MacOs 13.3.1, Anaconda Navigator 2.5.1, Jupyter lab 4.0.8
After some Updates, Jupyter lab did not start anymore.
Failure box:
Traceback (most recent call last):
File “/Users/usrname/opt/anaconda3/bin/jupyter-lab”, line 7, in
from jupyterlab.labapp import main
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jupyterlab/init.py”, line 8, in
from .handlers.announcements import (
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jupyterlab/handlers/announcements.py”, line 14, in
from jupyter_server.base.handlers import APIHandler
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jupyter_server/base/handlers.py”, line 24, in
from jupyter_events import EventLogger
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jupyter_events/init.py”, line 3, in
from .logger import EVENTS_METADATA_VERSION, EventLogger
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jupyter_events/logger.py”, line 14, in
from jsonschema import ValidationError
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jsonschema/init.py”, line 16, in
from jsonschema.validators import (
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jsonschema/validators.py”, line 19, in
from jsonschema_specifications import REGISTRY as SPECIFICATIONS
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jsonschema_specifications/init.py”, line 11, in
REGISTRY: _SchemaRegistry = (_schemas() @ _Registry()).crawl()
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/referencing/_core.py”, line 297, in rmatmul
for resource in new:
File “/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jsonschema_specifications/_core.py”, line 28, in _schemas
for child in version.iterdir():
File “/Users/usrname/opt/anaconda3/lib/python3.9/pathlib.py”, line 1160, in iterdir
for name in self._accessor.listdir(self):
NotADirectoryError: [Errno 20] Not a directory: ‘/Users/usrname/opt/anaconda3/lib/python3.9/site-packages/jsonschema_specifications/schemas/.DS_Store’
Solution: .DS_Store file deleted
Works again.
python mistook the .DS_Store as a directory.