Package: python3-sphinx
Version: 9.1.0-2
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I just ran an apt upgrade on my Debian testing, and spotted a lot of Python 
errors.

Happen that dpkg-reconfigure tries to use pypy3 to compile the
installed files, great, bug looks like python3-sphinx is using syntax that is
not compatible yet with pypy3:

    # dpkg-reconfigure  python3-sphinx
    Failed to byte-compile 
/usr/lib/python3/dist-packages/sphinx/_cli/__init__.py:   File 
"/usr/lib/python3/dist-packages/sphinx/_cli/__init__.py", line 41
        type _PARSER_SETUP = Callable[[argparse.ArgumentParser], 
argparse.ArgumentParser]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

According to strace, the command executed by dpkg-reconfigure is `pypy3compile 
-p python3-sphinx`:

    # pypy3compile -p python3-sphinx
    Failed to byte-compile 
/usr/lib/python3/dist-packages/sphinx/_cli/__init__.py:   File 
"/usr/lib/python3/dist-packages/sphinx/_cli/__init__.py", line 41
        type _PARSER_SETUP = Callable[[argparse.ArgumentParser], 
argparse.ArgumentParser]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

I'm only pasting a single error, but there's 120 lines of error, all the same 
about using `type` in Python code.

The `type` statement exists since Python 3.12:

- https://docs.python.org/3/whatsnew/3.12.html#whatsnew312-pep695

and pypy3 is only compatible with Python 3.11.

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

Kernel: Linux 6.19.14+deb14-amd64 (SMP w/16 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 python3-sphinx depends on:
ii  python3                  3.13.9-3
ii  python3-alabaster        1.0.0-1
ii  python3-babel            2.17.0-2
ii  python3-defusedxml       0.7.1-3
ii  python3-docutils         0.22.4+dfsg-1
ii  python3-imagesize        2.0.0-1
ii  python3-jinja2           3.1.6-2
ii  python3-packaging        26.0-1
ii  python3-pygments         2.19.2+dfsg-1
ii  python3-requests         2.32.5+dfsg-1
ii  python3-roman-numerals   4.1.0-1
ii  python3-snowballstemmer  3.0.1-1
ii  sphinx-common            9.1.0-2

Versions of packages python3-sphinx recommends:
ii  make         4.4.1-3
ii  python3-pil  12.2.0-1

Versions of packages python3-sphinx suggests:
pn  dvipng                           <none>
ii  dvisvgm                          3.6+ds-1
ii  fonts-freefont-otf               20211204+svn4273-4
ii  imagemagick                      8:7.1.2.18+dfsg1-1
ii  imagemagick-7.q16 [imagemagick]  8:7.1.2.18+dfsg1-1
pn  latexmk                          <none>
pn  node-mathjax-full                <none>
pn  python3-sphinx-rtd-theme         <none>
pn  sphinx-doc                       <none>
ii  tex-gyre                         20180621-7
ii  texlive-fonts-extra              2026.20260328-5
ii  texlive-fonts-recommended        2026.20260328-4
ii  texlive-latex-extra              2026.20260328-5
ii  texlive-latex-recommended        2026.20260328-4
ii  texlive-plain-generic            2026.20260328-5

-- no debconf information

Reply via email to