Dear All, I am trying to create an instance of jupyter notebook. It first shows “Your session is currently starting… Please be patient as this process can take a few minutes.” but then instead of starting the notebook it goes to “For debugging purposes, this card will be retained for 6 more days”. I tried to debug this and found that when script.sh runs to launch the Jupyter Notebook Server it gives the below error. I guess that it happened cause I tried to install a few python packages (matplotlib, matplotlib_inline and IPython). Is there any way to fix this?
Thanks
Traceback (most recent call last):
File “/usr/local/pace-apps/manual/packages/anaconda3/2022.05/lib/python3.9/site-packages/notebook/traittypes.py”, line 232, in _resolve_classes
klass = self._resolve_string(klass)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/traitlets.py”, line 2015, in _resolve_string
return import_item(string)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/utils/importstring.py”, line 33, in import_item
module = import(package, fromlist=[obj])
ModuleNotFoundError: No module named ‘jupyter_server.contents’
During the handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/pace-apps/manual/packages/anaconda3/2022.05/bin/jupyter-notebook”, line 11, in
sys.exit(main())
File “/usr/local/pace-apps/manual/packages/anaconda3/2022.05/lib/python3.9/site-packages/jupyter_core/application.py”, line 264, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/config/application.py”, line 1073, in launch_instance
app = cls.instance(**kwargs)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/config/configurable.py”, line 583, in instance
inst = cls(*args, **kwargs)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/traitlets.py”, line 1292, in new
inst.setup_instance(*args, **kwargs)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/traitlets.py”, line 1335, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File “/home/hice1/aagrawal433/.local/lib/python3.9/site-packages/traitlets/traitlets.py”, line 1311, in setup_instance
init(self)
File “/usr/local/pace-apps/manual/packages/anaconda3/2022.05/lib/python3.9/site-packages/notebook/traittypes.py”, line 223, in instance_init
self._resolve_classes()
File “/usr/local/pace-apps/manual/packages/anaconda3/2022.05/lib/python3.9/site-packages/notebook/traittypes.py”, line 235, in _resolve_classes
warn(f"{klass} is not importable. Is it installed?", ImportWarning)
TypeError: warn() missing 1 required keyword-only argument: ‘stacklevel’
Timed out waiting for Jupyter Notebook server to open port 31948!