When I try launch it I get this long error:
Traceback (most recent call last):
File “C:\ProgramData\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 235, in _resolve_classes
klass = self._resolve_string(klass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 2009, in _resolve_string
return import_item(string)
^^^^^^^^^^^^^^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\utils\importstring.py”, line 30, in import_item
module =
import
(package, fromlist=[obj])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named ‘jupyter_server.contents’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\ProgramData\anaconda3\Scripts\jupyter-notebook-script.py”, line 10, in
sys.exit(main())
^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\jupyter_core\application.py”, line 285, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\config\application.py”, line 1044, in launch_instance
app = cls.instance(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\config\configurable.py”, line 555, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1295, in
new
inst.setup_instance(*args, **kwargs)
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1338, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File “C:\Users\Zeyd Ali\AppData\Roaming\Python\Python311\site-packages\traitlets\traitlets.py”, line 1314, in setup_instance
init(self)
File “C:\ProgramData\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 226, in instance_init
self._resolve_classes()
File “C:\ProgramData\anaconda3\Lib\site-packages\notebook\traittypes.py”, line 238, in _resolve_classes
warn(f"{klass} is not importable. Is it installed?", ImportWarning)
TypeError: warn() missing 1 required keyword-only argument: ‘stacklevel’
How can I fix this?
Started seeing this after the installing the 6.5.5 version of the notebook packa
…
ge for the python kernel. Unclear exactly what's causing it currently though.
While this issue was caused by switching to 6.5.5 (through the RC1 build) it also affects stable so seems to be something related to the packages themselves.
Failed to change kernel. Kernel SQL will be used. Error was: Notebook process exited prematurely with error code: 1. StdErr Output: Traceback (most recent call last):
File "C:\Users\chgagnon\AppData\Roaming\Python\Python38\site-packages\notebook\traittypes.py", line 235, in _resolve_classes
klass = self._resolve_string(klass)
File "C:\Users\chgagnon\AppData\Roaming\Python\Python38\site-packages\traitlets\traitlets.py", line 2009, in _resolve_string
return import_item(string)
File "C:\Users\chgagnon\AppData\Roaming\Python\Python38\site-packages\traitlets\utils\importstring.py", line 30, in import_item
module = __import__(package, fromlist=[obj])
ModuleNotFoundError: No module named 'jupyter_server.contents'
Additional info:
1. Here's the PR that introduced the line that's failing : https://github.com/jupyter/notebook/pull/5957
2. Changing line 1411 in `$(Python)\Python38\site-packages\notebook\notebookapp.py` from
`'jupyter_server.contents.services.managers.ContentsManager'`
`'jupyter_server.services.contents.manager.ContentsManager'`
seems to fix the issue.
A workaround for now is to do the following and downgrade the ‘traitlets’ package:
pip uninstall traitlets
pip install traitlets==5.9.0
Hi! Problem still not solved for me: PermissionError: [WinError 5] Access is denied: ‘c:\program files\anaconda3\lib\site-packages\traitlets-5.1.0.dist-info\COPYING.md’
Please help