Closed brunolnetto closed 10 months ago
Hi @brunolnetto thank you for opening this issue! It is an issue similar to what was previously reported, https://github.com/jupyter/notebook/issues/7054 as well as in the traitlets repo. There seem to be two possible solutions, either downgrading to a version of traitlets <= 5.9 or upgrading to Notebook >= 6.4.13. (Notebook 6.5 series would be >= 6.5.6). I will close this issue but if you would like to reopen this issue with any further questions or follow-ups please feel free to do so!
Thansk for answering. I removed traitlets==5.13.0
with command pip uninstall traitlets
and reinstalled with command pip install traitlets==5.9
. It worked like a charm. :3
Thansk for answering. I removed
traitlets==5.13.0
with commandpip uninstall traitlets
and reinstalled with commandpip install traitlets==5.9
. It worked like a charm. :3
did the same but still it isn't working
I'm finding the same issue; and also noting that recent ipyhton does want a more recent version of traitlets.
pip freeze | grep notebook notebook==7.1.2
Also:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. ipython 8.23.0 requires traitlets>=5.13.0, but you have traitlets 5.9.0 which is incompatible.
jupyter notebook
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook/traittypes.py", line 235, in _resolve_classes
klass = self._resolve_string(klass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/traitlets.py", line 2018, in _resolve_string
return import_item(string)
^^^^^^^^^^^^^^^^^^^
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/utils/importstring.py", line 31, 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 "/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter-notebook", line 8, in <module>
sys.exit(main())
^^^^^^
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/jupyter_core/application.py", line 280, in launch_instance
super().launch_instance(argv=argv, **kwargs)
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/config/application.py", line 1075, in launch_instance
app = cls.instance(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/config/configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/traitlets.py", line 1294, in __new__
inst.setup_instance(*args, **kwargs)
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/traitlets.py", line 1337, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File "/Users/tonyhirst/Library/Python/3.11/lib/python/site-packages/traitlets/traitlets.py", line 1313, in setup_instance
init(self)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/notebook/traittypes.py", line 226, in instance_init
self._resolve_classes()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/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'
##############################################################################################
##############################################################################################
Instead:
Description
I use my personal linux machine to run notebooks. Today, I tried to run regular "jupyter notebook" command, but got error log below. I already purged the jupyter content from my machine and also tried installing inside a virtual environment, running command without success. There is something other I am not trying.
Reproduce
pip install jupyter && jupyter notebook
Expected behavior
Server startup and open browser tab with jupyter UI.
Context
Troubleshoot Output
Command Line Output
Browser Output