I upgraded my debian 12 to debian 13 (trixie). When I rebooted the vm tljh was down. When I checked the logs I found /opt/tljh/hub/bin/python3: No module named jupyterhub
I figured the issue was that since the OS upgraded python from 3.11 to 3.13, I needed to reinstall tljh.
However running bootstrap.py I get the following error
/opt/tljh# python3 bootstrap.py --version=latest
Existing TLJH installation detected, upgrading…
Upgrading pip…
Ran /opt/tljh/hub/bin/pip install --upgrade pip with exit code 1
Traceback (most recent call last):
File “/opt/tljh/hub/bin/pip”, line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’
Traceback (most recent call last):
File “/opt/tljh/bootstrap.py”, line 516, in
main()
~~~~^^
File “/opt/tljh/bootstrap.py”, line 480, in main
run_subprocess([hub_env_pip, “install”, “–upgrade”, “pip”])
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/tljh/bootstrap.py”, line 172, in run_subprocess
raise subprocess.CalledProcessError(cmd=cmd, returncode=proc.returncode)
subprocess.CalledProcessError: Command ‘[’/opt/tljh/hub/bin/pip’, ‘install’, ‘–upgrade’, ‘pip’]’ returned non-zero exit status 1.
Manually running pip with python3 /opt/tljh/hub/bin/pip gives me no error, but running with /opt/tljh/hub/bin/pip python complains that the module pip could not be found.
Do you guys know of a way to fix this without nuking the entire tljh installation?