• Bug#1104404: jupyterhub: missing python3-alembic dependency

    From =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-@21:1/5 to All on Tue Apr 29 17:30:02 2025
    Package: jupyterhub
    Version: 5.2.1+ds1-2
    Severity: normal

    Dear Maintainer,

    When starting jupyterhub I get this error message

    avril 29 10:50:14 systemd[1]: Started jupyterhub.service.
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.028 JupyterHub app:3346] Running JupyterHub version 5.2.1
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.028 JupyterHub app:3376] Using Authenticator: jupyterhub.auth.PAMAuthenticator-5.2.1
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.028 JupyterHub app:3376] Using Spawner: jupyterhub.spawner.LocalProcessSpawner-5.2.1
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.028 JupyterHub app:3376] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-5.2.1
    avril 29 10:50:16 python3[4588]: /usr/lib/python3/dist-packages/jupyter_events/schema.py:68: JupyterEventsVersionWarning: The `version` property of an event schema must be a stri>
    avril 29 10:50:16 python3[4588]: validate_schema(_schema)
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.044 JupyterHub app:1831] Loading cookie_secret from /var/lib/jupyterhub/jupyterhub_cookie_secret
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.053 JupyterHub dbutil:129] Upgrading sqlite:///jupyterhub.sqlite
    avril 29 10:50:16 python3[4588]: [I 2025-04-29 10:50:16.053 JupyterHub dbutil:100] Backing up jupyterhub.sqlite => jupyterhub.sqlite.2025-04-29-105016
    avril 29 10:50:16 python3[4588]: [E 2025-04-29 10:50:16.054 JupyterHub app:3912]
    avril 29 10:50:16 python3[4588]: Traceback (most recent call last):
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3/dist-packages/jupyterhub/app.py", line 3909, in launch_instance_async
    avril 29 10:50:16 python3[4588]: await self.initialize(argv)
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3/dist-packages/jupyterhub/app.py", line 3388, in initialize
    avril 29 10:50:16 python3[4588]: self.init_db()
    avril 29 10:50:16 python3[4588]: ~~~~~~~~~~~~^^
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3/dist-packages/jupyterhub/app.py", line 2000, in init_db
    avril 29 10:50:16 python3[4588]: dbutil.upgrade_if_needed(self.db_url, log=self.log)
    avril 29 10:50:16 python3[4588]: ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3/dist-packages/jupyterhub/dbutil.py", line 134, in upgrade_if_needed
    avril 29 10:50:16 python3[4588]: upgrade(db_url)
    avril 29 10:50:16 python3[4588]: ~~~~~~~^^^^^^^^
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3/dist-packages/jupyterhub/dbutil.py", line 85, in upgrade
    avril 29 10:50:16 python3[4588]: check_call(['alembic', '-c', alembic_ini, 'upgrade', revision])
    avril 29 10:50:16 python3[4588]: ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3.13/subprocess.py", line 414, in check_call
    avril 29 10:50:16 python3[4588]: retcode = call(*popenargs, **kwargs) avril 29 10:50:16 python3[4588]: File "/usr/lib/python3.13/subprocess.py", line 395, in call
    avril 29 10:50:16 python3[4588]: with Popen(*popenargs, **kwargs) as p:
    avril 29 10:50:16 python3[4588]: ~~~~~^^^^^^^^^^^^^^^^^^^^^^ avril 29 10:50:16 python3[4588]: File "/usr/lib/python3.13/subprocess.py", line 1039, in __init__
    avril 29 10:50:16 python3[4588]: self._execute_child(args, executable, preexec_fn, close_fds,
    avril 29 10:50:16 python3[4588]: ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: pass_fds, cwd, env,
    avril 29 10:50:16 python3[4588]: ^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: ...<5 lines>...
    avril 29 10:50:16 python3[4588]: gid, gids, uid, umask,
    avril 29 10:50:16 python3[4588]: ^^^^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: start_new_session, process_group)
    avril 29 10:50:16 python3[4588]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    avril 29 10:50:16 python3[4588]: File "/usr/lib/python3.13/subprocess.py", line 1969, in _execute_child
    avril 29 10:50:16 python3[4588]: raise child_exception_type(errno_num, err_msg, err_filename)
    avril 29 10:50:16 python3[4588]: FileNotFoundError: [Errno 2] No such file or directory: 'alembic'
    avril 29 10:50:16 python3[4588]:


    It seems to me that python3-alembic is missing in the Depends


    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)

    Kernel: Linux 6.12.22-amd64 (SMP w/128 CPU threads; PREEMPT)
    Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages jupyterhub depends on:
    ii fonts-font-awesome 5.0.10+really4.7.0~dfsg-4.1
    ii libjs-bootstrap 3.4.1+dfsg-4
    ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
    ii libjs-prototype 1.7.3-2
    ii libjs-requirejs 2.3.7+ds+~2.1.37-1
    ii node-configurable-http-proxy 4.5.3+~cs15.2.4-3
    ii python3 [python3-supported-min] 3.13.3-1
    ii python3-alembic 1.13.2-4
    ii python3-async-generator 1.10-4
    ii python3-bcrypt 4.2.0-2.1+b1
    ii python3-certipy 0.1.3-4
    ii python3-dateutil 2.9.0-4
    ii python3-idna 3.10-1
    ii python3-importlib-metadata 8.6.1-1
    ii python3-jinja2 3.1.6-1
    ii python3-jupyter-events 0.12.0-2
    ii python3-notebook 6.4.13-5
    ii python3-oauthlib 3.2.2-3
    ii python3-packaging 24.2-3
    ii python3-pamela 1.0.0-3
    ii python3-prometheus-client 0.21.1+ds1-1
    ii python3-pydantic 2.10.6-2
    ii python3-requests 2.32.3+dfsg-5
    ii python3-sqlalchemy 2.0.40+ds1-1
    ii python3-tornado 6.4.2-1
    ii python3-traitlets 5.14.3+really5.14.3-1

    jupyterhub recommends no packages.

    jupyterhub suggests no packages.

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)