Your message dated Wed, 11 Nov 2026 03:08:22 +0000
with message-id <[email protected]>
and subject line Bug#1149155: fixed in python-friendly-traceback 
0.7.62+git20261031.995a95b-1
has caused the Debian Bug report #1149155,
regarding python-friendly-traceback: FTBFS against python 3.15rc2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1149155: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1149155
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-friendly-traceback
Version: 0.7.62+git20250413.bba8fc4-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 version we found that python-friendly-traceback fails to build from source [1].
There are a number of different errors due to changes in wording in the 
exceptions in Python 3.15. I've created a patch that accepts both wordings. I 
couldn't find this applied upstream, so this should probably be forwarded.

I've applied these changes in the sandbox [2] to verify that it builds 
successfully, please consider applying the patch to support the upcoming 3.15 
version.

Setting the severity to important for now. Once Python 3.15 is released, it 
will be added to python3-defaults and this bug will become release critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4467551/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: Fix compatibility with Python 3.15
 Handle updated syntax error and type error messages in Python 3.15,
 and adapt tests for PEP 748 comprehension unpacking syntax.
Forwarded: not-needed

Index: python-friendly-traceback/friendly_traceback/runtime_errors/type_error.py
===================================================================
--- python-friendly-traceback.orig/friendly_traceback/runtime_errors/type_error.py
+++ python-friendly-traceback/friendly_traceback/runtime_errors/type_error.py
@@ -886,8 +886,9 @@ def indices_must_be_integers_or_slices(
 def slice_indices_must_be_integers_or_none(
     message: str, _tb_data: TracebackData
 ) -> CauseInfo:
-    if message != (
-        "slice indices must be integers or None or have an __index__ method"
+    if message not in (
+        "slice indices must be integers or None or have an __index__ method",
+        "slice indices must be integers or have an __index__ method",
     ):
         return {}
 
Index: python-friendly-traceback/friendly_traceback/syntax_errors/message_analyzer.py
===================================================================
--- python-friendly-traceback.orig/friendly_traceback/syntax_errors/message_analyzer.py
+++ python-friendly-traceback/friendly_traceback/syntax_errors/message_analyzer.py
@@ -805,7 +805,9 @@ def continue_outside_loop(message: str =
 
 @add_python_message
 def duplicate_argument_in_function_definition(message: str = "", statement=None):
-    if "duplicate argument" in message and "function definition" in message:
+    if (
+        "duplicate argument" in message or "duplicate parameter" in message
+    ) and "function definition" in message:
         name = message.split("'")[1]
         cause = _(
             "You have defined a function repeating the argument\n\n"
@@ -1459,7 +1461,10 @@ def mismatched_parenthesis(message: str
 @add_python_message
 def named_arguments_must_follow_bare_star(message: str = "", _statement=None):
     # TODO: revise this as it can be greatly improved
-    if message != "named arguments must follow bare *":
+    if message not in (
+        "named arguments must follow bare *",
+        "named parameters must follow bare *",
+    ):
         return {}
 
     hint = _("Did you forget something after `*`?\n")
@@ -2069,7 +2074,10 @@ def assign_to_others(message: str = "",
 @add_python_message
 def arguments_cannot_follow_var(message: str = "", statement=None):
     # new message for Python 3.11
-    if "arguments cannot follow var-keyword argument" not in message:
+    if (
+        "arguments cannot follow var-keyword argument" not in message
+        and "parameters cannot follow var-keyword parameter" not in message
+    ):
         return {}
     return error_in_def.analyze_def_statement(statement)
 
@@ -2085,7 +2093,10 @@ def slash_must_be_ahead(message: str = "
 @add_python_message
 def star_may_appear_only_once(message: str = "", statement=None):
     # new message for Python 3.11
-    if "* argument may appear only once" not in message:
+    if (
+        "* argument may appear only once" not in message
+        and "* may appear only once" not in message
+    ):
         return {}
     return error_in_def.analyze_def_statement(statement)
 
Index: python-friendly-traceback/tests/runtime/test_type_error.py
===================================================================
--- python-friendly-traceback.orig/tests/runtime/test_type_error.py
+++ python-friendly-traceback/tests/runtime/test_type_error.py
@@ -757,8 +757,10 @@ def test_Slice_indices_must_be_integers_
 
     assert (
         "TypeError: slice indices must be integers or None "
-        "or have an __index__ method"
-    ) in result
+        "or have an __index__ method" in result
+        or "TypeError: slice indices must be integers "
+        "or have an __index__ method" in result
+    )
     if friendly_traceback.get_lang() == "en":
         assert "When using a slice to extract a range of elements" in result
     if friendly_traceback._writing_docs:
Index: python-friendly-traceback/tests/syntax_errors_descriptions.py
===================================================================
--- python-friendly-traceback.orig/tests/syntax_errors_descriptions.py
+++ python-friendly-traceback/tests/syntax_errors_descriptions.py
@@ -1182,3 +1182,7 @@ if sys.version_info >= (3, 12):
         title: "unterminated string literal",
     }
     del descriptions["f_string_with_backslash"]  # not a syntax error for Python 3.12
+
+if sys.version_info >= (3, 15):
+    del descriptions["iteration_unpacking_in_comprehension"]  # not a syntax error for Python 3.15
+

--- End Message ---
--- Begin Message ---
Source: python-friendly-traceback
Source-Version: 0.7.62+git20261031.995a95b-1
Done: Josenilson Ferreira da Silva <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-friendly-traceback, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Josenilson Ferreira da Silva <[email protected]> (supplier of updated 
python-friendly-traceback package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 10 Nov 2026 23:26:14 -0300
Source: python-friendly-traceback
Architecture: source
Version: 0.7.62+git20261031.995a95b-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Josenilson Ferreira da Silva <[email protected]>
Closes: 1149155
Changes:
 python-friendly-traceback (0.7.62+git20261031.995a95b-1) unstable; 
urgency=medium
 .
   [ Pieter Lenaerts ]
   * d/gbp.conf: set default branch to debian/main, in conflict with python
     team policy
   * New upstream version 0.7.62+git20261031.995a95b
   * d/patches: rebase
   * d/control: add hatchling, bump debhelper_compat to 14, remove obsolote
     substvars
   * d/patches: add patch 0005 for py 3.15 (Closes: 1149155)
   * d/patches: add patch 0006, handle generic 'import X from Y' syntax error
     message
   * debian/copyright: correct path for S. Myints copyright.
 .
   [ Jeroen Ploemen ]
   * d/source/options: remove, deals with obsolete egg-info.
   * Control: add explicit build-dep on dh-sequence-single-binary.
   * Tests: add a smoketest to verify module dependencies on the binary
     package.
 .
   [ Josenilson Ferreira da Silva ]
   * d/control: add runtime dependencies to python3-friendly-traceback
Checksums-Sha1:
 228edff282774565001c18f58ee9f36a8f946c6d 2627 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.dsc
 124e3793811ec30409d07f7f7c2679383a149c3b 457316 
python-friendly-traceback_0.7.62+git20261031.995a95b.orig.tar.xz
 be7caa88b5440451d58a3b8d5f56e96d6acfb9f4 7596 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.debian.tar.xz
 b212e5cc82afbc172f8964d25c01afab6ee2572d 10742 
python-friendly-traceback_0.7.62+git20261031.995a95b-1_source.buildinfo
Checksums-Sha256:
 d1a47cb25f1992e327a6189edbe9c852c3f92bd1e54f085460890760198166fe 2627 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.dsc
 aca66dc950993ed89c5a8ceb760c6b4a85bfb58056fbf539ce0b364355b8d1ea 457316 
python-friendly-traceback_0.7.62+git20261031.995a95b.orig.tar.xz
 e13c8f147e62148de2d862bf5e2c2f8c139468b3bbd817b1f6f0c1d8a8ae7b97 7596 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.debian.tar.xz
 383d72df08e23d9f44c1462416b15c10fdc1b3850c15a6ba9bd38f8973f45fd1 10742 
python-friendly-traceback_0.7.62+git20261031.995a95b-1_source.buildinfo
Files:
 114679a74db713f97603a597322a5a69 2627 python optional 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.dsc
 1aea2f35b69f0a755875ccac1d156466 457316 python optional 
python-friendly-traceback_0.7.62+git20261031.995a95b.orig.tar.xz
 3a905a2fdebeb8ad6816f34e3cb3af9c 7596 python optional 
python-friendly-traceback_0.7.62+git20261031.995a95b-1.debian.tar.xz
 9250154a2e6ddfa5179c67a79dd2fe64 10742 python optional 
python-friendly-traceback_0.7.62+git20261031.995a95b-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEqBlNXRF+LQLfMNMNB6n1YjE0Rs0FAmrz1OUACgkQB6n1YjE0
Rs0JOQ//Rxvd+8aan9W1h1C/F+xM1aL0V9QrNWQRn47B9Q5fUg1ELKu0iRPa6p6i
q6MUGSDPZka/IqMI8LIHi4rcBXuFf1poeF3ATqTGCxTNB15efe2fRZxiOXzy5iAk
UA1dUNUscjStWSdG+WLhDW1t7fOdNDMBR00KzmV9Ks2UU/o3A1QlSWp4RB1T9Kbk
kSf2mplzDjT563yH8pz4me3bAPfi8RoqsFld8XElO2JWA3zx6MJrD/95M3LTTys6
3DK+OCLAZT4GQDFYI4DekdkiUERYvM97/uxQSHY4Cys3IrZIZZgeL362Z0rWbalV
GKcU0Jww3uClBHHRcAeZUEI3HodjyWGzTnAdgKcP7JBN6rasbNfpnOYCqYj9WhKW
UmL2F4L4mxaoKtlWEHo+nn3tjWnXtYmUg7GsNlx5uHY44qdaBoDA06R5Ue1x4atm
6RUpwoaH4Lxl0mkizYQSItzTVz9QBML4MqO+nxG2/bUcvIt6yJ08DJ9/67giOjeX
PJmBO/vCFhLC/SuHaWJI0BuDoCIzIjdACfuWLkgXpuavTSmfWIMYqKchTkYl+Ljk
pRvVEblAeIjhX0iWwEYw7qKBY5+Vv6pfe59K6E0jPUaBQ6WAjRgArJLEX2OwsYBd
A7Bg84zoV2nQ3EFS6THHh23MDOM/aH5VTS7DnjGTSTzDWpwsdJs=
=Ic6+
-----END PGP SIGNATURE-----

Attachment: pgpUIGobRmYwy.pgp
Description: PGP signature


--- End Message ---

Reply via email to