Hi, I am unable to launch jupyterlab from anaconda on MacBook. Anaconda can be launched.
- Any solution for this ?
- How do I retrieve my files previously stored in juypyterlab ?
Traceback (most recent call last):
File “/Users/XXXXXX/anaconda3/bin/jupyter-lab”, line 7, in
from jupyterlab.labapp import main
File “/Users/XXXXXX/anaconda3/lib/python3.10/site-packages/jupyterlab/init.py”, line 7, in
from .serverextension import load_jupyter_server_extension
File “/Users/XXXXXX/anaconda3/lib/python3.10/site-packages/jupyterlab/serverextension.py”, line 3, in
from jupyter_server.utils import url_path_join
File “/Users/XXXXXX/anaconda3/lib/python3.10/site-packages/jupyter_server/utils.py”, line 18, in
from tornado.httpclient import AsyncHTTPClient, HTTPClient, HTTPRequest
File “/Users/XXXXXX/anaconda3/lib/python3.10/site-packages/tornado/httpclient.py”, line 49, in
from tornado import httputil, stack_context
File “/Users/XXXXXX/anaconda3/lib/python3.10/site-packages/tornado/httputil.py”, line 106, in
AttributeError: module ‘collections’ has no attribute ‘MutableMapping’
Before you deal with the possible version mismatches, work on finding your older
.ipynb files. Files don’t get stored in JupyterLab. Use your Mac’s operating system Finder and search for files ending in
.ipynb. Those should be your files. Note the locations and then copy them somewhere to back them up in a place you know you won’t touch if you try to fix your version mismatch situation. If you deal with the inconsistent versions to fix things and the
.ipynb files are still intact in the original location(s), you can then later delete the backups.
If you have files that you made with JupyterLab before, that implies you used JupyterLab before and it was working. What changed in your Anaconda installation that it isn’t working now?
You seem to have inconsistent versions of things. Everything I see says Python 3.10 changed things:
‘In Python 3.10 and later, the MutableMapping class has been removed from the collections module. This is why you see the AttributeError that says, “module ‘collections’ has no attribute ‘MutableMapping’”.’ (see here)
thanks for the help. Appreciate it. I managed the retrieved the files via deleting
anaconda and installing it again- picking up the files.