[MacPorts] #69358: jupyter notebook fails
MacPorts
noreply at macports.org
Sat Feb 17 23:28:41 UTC 2024
#69358: jupyter notebook fails
----------------------------+--------------------
Reporter: agl2015 | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Resolution: duplicate | Keywords:
Port: py311-jupyter |
----------------------------+--------------------
Changes (by ryandesign):
* status: new => closed
* resolution: => duplicate
Old description:
> Under the latest version of macOS Sonoma (14.3.1) running on a late 2020
> 15" MacBook Pro, the command "jupyter notebook" fails with the following
> error:
>
> Traceback (most recent call last):
> File
> "/opt/local/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
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/traitlets.py", line 2015, in _resolve_string
> return import_item(string)
> ^^^^^^^^^^^^^^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/utils/importstring.py", line 33, 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 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin
> /jupyter-notebook", line 8, in <module>
> sys.exit(main())
> ^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/jupyter_core/application.py", line 277, in launch_instance
> return super().launch_instance(argv=argv, **kwargs)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/config/application.py", line 1073, in
> launch_instance
> app = cls.instance(**kwargs)
> ^^^^^^^^^^^^^^^^^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/config/configurable.py", line 583, in instance
> inst = cls(*args, **kwargs)
> ^^^^^^^^^^^^^^^^^^^^
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/traitlets.py", line 1292, in __new__
> inst.setup_instance(*args, **kwargs)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/traitlets.py", line 1335, in setup_instance
> super(HasTraits, self).setup_instance(*args, **kwargs)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/traitlets/traitlets.py", line 1311, in setup_instance
> init(self)
> File
> "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
> /site-packages/notebook/traittypes.py", line 226, in instance_init
> self._resolve_classes()
> File
> "/opt/local/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'
New description:
Under the latest version of macOS Sonoma (14.3.1) running on a late 2020
15" MacBook Pro, the command "jupyter notebook" fails with the following
error:
{{{
Traceback (most recent call last):
File
"/opt/local/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
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/traitlets.py", line 2015, in _resolve_string
return import_item(string)
^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/utils/importstring.py", line 33, 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 "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin
/jupyter-notebook", line 8, in <module>
sys.exit(main())
^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/jupyter_core/application.py", line 277, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/config/application.py", line 1073, in
launch_instance
app = cls.instance(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/config/configurable.py", line 583, in instance
inst = cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/traitlets.py", line 1292, in __new__
inst.setup_instance(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/traitlets.py", line 1335, in setup_instance
super(HasTraits, self).setup_instance(*args, **kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/traitlets/traitlets.py", line 1311, in setup_instance
init(self)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/notebook/traittypes.py", line 226, in instance_init
self._resolve_classes()
File
"/opt/local/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'
}}}
--
Comment:
Duplicate of #69244.
--
Ticket URL: <https://trac.macports.org/ticket/69358#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list