Bug#1149678: python3-deprecated: When pypy3 is installed, installing python3-deprecated show SyntaxErrors

Julien Palard julien at palard.fr
Fri Oct 2 08:40:03 BST 2026


Package: python3-deprecated
Version: 3.0.0-1
Severity: normal
X-Debbugs-Cc: julien at palard.fr

Dear Maintainer,

When installing python3-deprecated, if and only if pypy3 is installed, I'm getting the following errors:

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/classic.py:   File "/usr/lib/python3/dist-packages/deprecated/classic.py", line 33
        type WarningAction = Literal["default", "error", "ignore", "always", "module", "once"]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/google.py:   File "/usr/lib/python3/dist-packages/deprecated/google.py", line 49
        type GoogleSection = Literal["versionadded", "versionchanged", "deprecated"]
             ^^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/numpy.py:   File "/usr/lib/python3/dist-packages/deprecated/numpy.py", line 53
        type NumpySection = Literal["versionadded", "versionchanged", "deprecated"]
             ^^^^^^^^^^^^
    SyntaxError: invalid syntax

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/params.py:   File "/usr/lib/python3/dist-packages/deprecated/params.py", line 100
        def __call__[**P, R](self, f: Callable[P, R]) -> Callable[P, R]:
                    ^
    SyntaxError: expected '('

    Failed to byte-compile /usr/lib/python3/dist-packages/deprecated/sphinx.py:   File "/usr/lib/python3/dist-packages/deprecated/sphinx.py", line 35
        type SphinxDirective = Literal["versionadded", "versionchanged", "deprecated"]
             ^^^^^^^^^^^^^^^
    SyntaxError: invalid syntax

This is similar to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136119

So probably fixable by using an appropriate X-Python3-Version to debian/control.

Versions:

pypy3: 8.0.0+dfsg-1
python3-deprecated: 3.0.0-1

Bests,

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

Kernel: Linux 7.2.6+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-deprecated depends on:
ii  python3        3.14.7-3
ii  python3-wrapt  2.3.0-1

python3-deprecated recommends no packages.

python3-deprecated suggests no packages.

-- no debconf information



More information about the Pkg-grass-devel mailing list