[MacPorts] #69244: py311-notebook: ModuleNotFoundError: No module named 'jupyter_server.contents'
MacPorts
noreply at macports.org
Thu Feb 22 06:20:57 UTC 2024
#69244: py311-notebook: ModuleNotFoundError: No module named
'jupyter_server.contents'
-----------------------------+----------------------
Reporter: jolivetr | Owner: stromnov
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py311-notebook |
-----------------------------+----------------------
Comment (by dyne2meter):
Using pip works, but sort of... better than nothing ...
{{{
Collecting traitlets==5.9.0
Downloading traitlets-5.9.0-py3-none-any.whl.metadata (10 kB)
Downloading traitlets-5.9.0-py3-none-any.whl (117 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.4/117.4 kB 4.3 MB/s eta
0:00:00
Installing collected packages: traitlets
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.
jupyter 1.0.0 requires qtconsole, which is not installed.
nbconvert 7.2.9 requires mistune<3,>=2.0.3, but you have mistune 3.0.2
which is incompatible.
Successfully installed traitlets-5.9.0
}}}
Notebook starts, but emits numerous errors (some appear related to the
need to revert anyio, mentioned in a previous post):
{{{
[W 07:04:04.861 NotebookApp] Error loading server extension jupyterlab
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/notebook/notebookapp.py", line 2025, in
init_server_extensions
mod = importlib.import_module(modulename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py",
line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in
_find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in
exec_module
File "<frozen importlib._bootstrap>", line 488, in
_call_with_frames_removed
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyterlab/__init__.py", line 7, in <module>
from .labapp import LabApp
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyterlab/labapp.py", line 15, in <module>
from jupyterlab_server import slugify, WORKSPACE_EXTENSION
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyterlab_server/__init__.py", line 4, in <module>
from .app import LabServerApp
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyterlab_server/app.py", line 7, in <module>
from jupyter_server.extension.application import ExtensionApp,
ExtensionAppJinjaMixin
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyter_server/extension/application.py", line 21, in
<module>
from jupyter_server.serverapp import ServerApp
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyter_server/serverapp.py", line 75, in <module>
from jupyter_server.services.contents.filemanager import
AsyncFileContentsManager, FileContentsManager
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/jupyter_server/services/contents/filemanager.py", line 15,
in <module>
from anyio import run_sync_in_worker_thread
ImportError: cannot import name 'run_sync_in_worker_thread' from
'anyio'
(/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12
/site-packages/anyio/__init__.py)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/69244#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list