Starting jupyterlab on the free-threaded build on MacOS immediately segfaults. See jupyter/notebook#7512 for the same issue reported against notebook
.
Install a free-threaded python on MacOS with developer tools installed (it may also happen on other operating systems), then do pip install jupyter
and do jupyer lab
, you'll see:
goldbaum at Nathans-MBP in ~/Documents
○ python -VV
Python 3.13.0 experimental free-threading build (main, Oct 10 2024, 10:28:54) [Clang 16.0.0 (clang-1600.0.26.3)]
goldbaum at Nathans-MBP in ~/Documents
○ jupyter lab
[1] 96654 segmentation fault jupyter lab
This may be due to a depenency of jupyter not actually supporting the free-threaded build.
The jupyter
CLI works fine, so maybe there is a way to abort before the seg fault to at least give users a better error message.
I'm unable to get a C stack trace for the segfault:
goldbaum at Nathans-MBP in ~/Documents
○ lldb $(pyenv which python) -- -m jupyter lab
(lldb) target create "/Users/goldbaum/.pyenv/versions/3.13.0t/bin/python"
Current executable set to '/Users/goldbaum/.pyenv/versions/3.13.0t/bin/python' (arm64).
(lldb) settings set -- target.run-args "-m" "jupyter" "lab"
(lldb) r
Process 96490 launched: '/Users/goldbaum/.pyenv/versions/3.13.0t/bin/python' (arm64)
Process 96490 exited with status = 5 (0x00000005) Terminated due to signal 5
(lldb) bt
error: Command requires a process which is currently stopped.
Expected behavior
jupyterlab starts
Contextsys.path:
/Users/goldbaum/.pyenv/versions/3.13.0t/bin
/Users/goldbaum/.pyenv/versions/3.13.0t/lib/python313t.zip
/Users/goldbaum/.pyenv/versions/3.13.0t/lib/python3.13t
/Users/goldbaum/.pyenv/versions/3.13.0t/lib/python3.13t/lib-dynload
/Users/goldbaum/.pyenv/versions/3.13.0t/lib/python3.13t/site-packages
sys.executable:
/Users/goldbaum/.pyenv/versions/3.13.0t/bin/python3.13t
sys.version:
3.13.0 experimental free-threading build (main, Oct 10 2024, 10:28:54) [Clang 16.0.0 (clang-1600.0.26.3)]
platform.platform():
macOS-14.7-arm64-arm-64bit-Mach-O
which -a jupyter:
/Users/goldbaum/.pyenv/versions/3.13.0t/bin/jupyter
/Users/goldbaum/.pyenv/shims/jupyter
pip list:
Package Version
------------------------- --------------
anyio 4.6.2.post1
appnope 0.1.4
argcomplete 3.5.1
argon2-cffi 23.1.0
argon2-cffi-bindings 21.2.0
arrow 1.3.0
asttokens 2.4.1
async-lru 2.0.4
attrs 24.2.0
babel 2.16.0
beautifulsoup4 4.12.3
bleach 6.2.0
certifi 2024.8.30
cffi 1.17.1
cfgv 3.4.0
charset-normalizer 3.4.0
colorlog 6.8.2
comm 0.2.2
debugpy 1.8.7
decorator 5.1.1
defusedxml 0.7.1
distlib 0.3.9
executing 2.1.0
fastjsonschema 2.20.0
filelock 3.16.1
fqdn 1.5.1
h11 0.14.0
httpcore 1.0.6
httpx 0.27.2
identify 2.6.1
idna 3.10
ipykernel 6.29.5
ipython 8.29.0
ipywidgets 8.1.5
isoduration 20.11.0
jedi 0.19.1
Jinja2 3.1.4
json5 0.9.25
jsonpointer 3.0.0
jsonschema 4.23.0
jsonschema-specifications 2024.10.1
jupyter 1.1.1
jupyter_client 8.6.3
jupyter-console 6.6.3
jupyter_core 5.7.2
jupyter-events 0.10.0
jupyter-lsp 2.2.5
jupyter_server 2.14.2
jupyter_server_terminals 0.5.3
jupyterlab 4.2.5
jupyterlab_pygments 0.3.0
jupyterlab_server 2.27.3
jupyterlab_widgets 3.0.13
MarkupSafe 3.0.2
matplotlib-inline 0.1.7
meson 1.5.2
meson-python 0.17.0
mistune 3.0.2
nbclient 0.10.0
nbconvert 7.16.4
nbformat 5.10.4
nest-asyncio 1.6.0
ninja 1.11.1.1
nodeenv 1.9.1
notebook 7.2.2
notebook_shim 0.2.4
nox 2024.10.9
overrides 7.7.0
packaging 24.1
pandocfilters 1.5.1
parso 0.8.4
pexpect 4.9.0
pip 24.2
platformdirs 4.3.6
pre_commit 4.0.1
prometheus_client 0.21.0
prompt_toolkit 3.0.48
psutil 6.1.0
ptyprocess 0.7.0
pure_eval 0.2.3
pycparser 2.22
Pygments 2.18.0
pyproject-metadata 0.8.1
python-dateutil 2.9.0.post0
python-json-logger 2.0.7
PyYAML 6.0.2
pyzmq 26.2.0
referencing 0.35.1
requests 2.32.3
rfc3339-validator 0.1.4
rfc3986-validator 0.1.1
rpds-py 0.20.1
ruff 0.7.0
Send2Trash 1.8.3
setuptools 75.3.0
six 1.16.0
sniffio 1.3.1
soupsieve 2.6
stack-data 0.6.3
terminado 0.18.1
test_datetime 0.0.1
tinycss2 1.4.0
tornado 6.4.1
traitlets 5.14.3
types-python-dateutil 2.9.0.20241003
uri-template 1.3.0
urllib3 2.2.3
virtualenv 20.26.6
wcwidth 0.2.13
webcolors 24.8.0
webencodings 0.5.1
websocket-client 1.8.0
widgetsnbextension 4.0.13
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4