Opened 5 months ago
Last modified 5 months ago
#70318 assigned defect
py-notebook: Jupyter notebook fails to open notebooks (MacOS 14.5 (23F79), M1 MacBook Pro)
Reported by: | agl2015 | Owned by: | stromnov (Andrey Stromnov) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | Cc: | ||
Port: | py311-notebook, py312-notebook |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Jupyter-notebook (both versions 3.11 and 3.12) under MacOS 14.5 (Sonoma) on an M1 13” MacBook Pro does not properly handle opening of notebooks. More specifically, jupyter-notebook launches normally and allows one to navigate the hard disk hierarchy in a Safari tab. However, after double clicking on a notebook to edit/run it a new tab is opened in Safari, but it remains empty, and the following error message appears in the terminal window:
[W 2024-07-02 20:21:04.197 ServerApp] 500 GET /api/nbconvert?1719944463490 (::1): Could not import nbconvert: No module named 'jupyterlab_pygments' [W 2024-07-02 20:21:04.198 ServerApp] wrote error: "Could not import nbconvert: No module named 'jupyterlab_pygments'" Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_server/services/nbconvert/handlers.py", line 34, in get from nbconvert.exporters import base File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/exporters/__init__.py", line 1, in <module> from .asciidoc import ASCIIDocExporter File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/exporters/asciidoc.py", line 9, in <module> from .templateexporter import TemplateExporter File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/exporters/templateexporter.py", line 31, in <module> from nbconvert import filters File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/filters/__init__.py", line 18, in <module> from .strings import ( File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/filters/strings.py", line 23, in <module> from nbconvert.preprocessors.sanitize import _get_default_css_sanitizer File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/preprocessors/__init__.py", line 10, in <module> from .csshtmlheader import CSSHTMLHeaderPreprocessor File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nbconvert/preprocessors/csshtmlheader.py", line 10, in <module> from jupyterlab_pygments import JupyterStyle # type:ignore[import-untyped] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'jupyterlab_pygments' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/tornado/web.py", line 1790, in _execute result = await result ^^^^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_server/auth/decorator.py", line 73, in inner return await out ^^^^^^^^^ File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/jupyter_server/services/nbconvert/handlers.py", line 36, in get raise web.HTTPError(500, "Could not import nbconvert: %s" % e) from e tornado.web.HTTPError: HTTP 500: Internal Server Error (Could not import nbconvert: No module named 'jupyterlab_pygments') [E 2024-07-02 20:21:04.255 ServerApp] { "Host": "localhost:8888", "Accept": "*/*", "Referer": "http://localhost:8888/tree/Documents/Letters/Work/PIE%202023/Mecanica-Clasica/Proyectos%20ejemplo", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15" } [E 2024-07-02 20:21:04.255 ServerApp] 500 GET /api/nbconvert?1719944463490 (d53fb08e47094d3391d51baf374fd6ed@::1) 762.19ms referer=http://localhost:8888/tree/Documents/Letters/Work/PIE%202023/Mecanica-Clasica/Proyectos%20ejemplo [W 2024-07-02 20:21:04.759 ServerApp] Notebook Documents/Letters/Work/PIE 2023/Mecanica-Clasica/Proyectos ejemplo/sistemas_no_inerciales.ipynb is not trusted
Change History (1)
comment:1 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Keywords: | Jupyter-notebook removed |
Owner: | set to stromnov |
Status: | new → assigned |
Summary: | Jupyter notebook fails to open notebooks (MacOS 14.5 (23F79), M1 MacBook Pro) → py-notebook: Jupyter notebook fails to open notebooks (MacOS 14.5 (23F79), M1 MacBook Pro) |
Note: See
TracTickets for help on using
tickets.