/usr/lib/kitty/kitty/options/definition.py:4116: SyntaxWarning: invalid escape sequence '\e' long_text='''

Bug #2073688 reported by Agathe Porte
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kitty (Ubuntu)
Fix Released
Low
Unassigned
Noble
In Progress
Low
Agathe Porte

Bug Description

[ Impact ]

The package displays a warning when installing it or upgrading it
from a previous version. This warning can scare users who see it
in the terminal.

[ Test Plan ]

Try to install the patched package and verify that it still starts
fine. Check that the warning is gone when installing or upgrading
the package:

$ sudo dpkg -i ./kitty_xxx.deb # no warnings displayed during install
$ kitty # use as a terminal

[ Where problems could occur ]

Fixing the string wrongly can make the program behave wrongly.

[ Original Bug Report ]

Hello,

During the upgrade of kitty, I get the following warning:

Setting up kitty (0.32.2-1ubuntu0.1) ...
/usr/lib/kitty/kitty/options/definition.py:4116: SyntaxWarning: invalid escape sequence '\e'
  long_text='''

I this this file should be patched so the warning does not appear during upgrade.

Revision history for this message
Agathe Porte (gagath) wrote :

Seems to be patched in later versions, does not occur in an oracular chroot. Only needs to be fixed in Noble.

description: updated
Revision history for this message
Agathe Porte (gagath) wrote :

Attached debdiff for Noble SRU update.

Changed in kitty (Ubuntu Noble):
assignee: nobody → Agathe Porte (gagath)
importance: Undecided → Low
Changed in kitty (Ubuntu):
importance: Wishlist → Low
status: New → Triaged
Changed in kitty (Ubuntu Noble):
status: New → In Progress
description: updated
Graham Inggs (ginggs)
Changed in kitty (Ubuntu):
status: Triaged → Fix Released
assignee: Agathe Porte (gagath) → nobody
Revision history for this message
Graham Inggs (ginggs) wrote :

This FTBFS for me, it looks like the same error reported to Debian [1].
If you get it to build, please provide a log or link to a PPA build.

[1] https://bugs.debian.org/1074216

Revision history for this message
Graham Inggs (ginggs) wrote :

My mistake, I didn't realize I tried to build this package with a backport of python3.12 3.12.4.

It builds fine with python3.12 3.12.3 from Noble.

However, this means that kitty in Noble will likely FTBFS when python3.12 gets an update. Would you please look to see if it is feasible to backport the fix for the FTBFS in the same SRU?

Revision history for this message
Agathe Porte (gagath) wrote :

Attached v2 debdiff that will also fix the FTBFS with Python updates for the tarball DeprecationWarning (upstream cherry-pick).

Revision history for this message
Graham Inggs (ginggs) wrote :

Uploaded, thanks!

Revision history for this message
Robie Basak (racb) wrote :

In general this looks good.

> + * Backport upstream commit ecc44dffeb50746cc3e3019750226a80a50082a3
> + to fix test_ssh_leading_data with newer releases of Python

This sounds like it only affects tests, and thus is OK to add to the SRU without further analysis. However, I was unable to verify this in a few minutes, and you made no mention of it in the bug comments above. Are you sure that this affects tests only and regular use of the built binary package, and how can this be verified?

> [ Test Plan ]

> Try to install the patched package and verify that it still starts
> fine. Check that the warning is gone when installing or upgrading
> the package.

Please could you add a smoke test to the Test Plan, or if that is already being done with automatic tests, document how you have determined this? This would then help mitigate what you're already identified in your regression analysis.

It would also be nice to have dep3 headers in the quilt patches so that they can more easily be verified against upstream, but no need to re-upload just for that.

Changed in kitty (Ubuntu Noble):
status: In Progress → Incomplete
Revision history for this message
Agathe Porte (gagath) wrote :

Hello Robie,

> This sounds like it only affects tests, and thus is OK to add to the SRU
> without further analysis. However, I was unable to verify this in a few
> minutes, and you made no mention of it in the bug comments above. Are you sure
> that this affects tests only and regular use of the built binary package, and
> how can this be verified?

No, it fixes something that will fail during testing and was caught by an
upstream test that was run during build. The fix is an upstream cherry-pick
that fixes that. It is not related to the SRU, but was asked to be added
as well by Graham because the next SRU of Python would have broken it anyways.

> Please could you add a smoke test to the Test Plan, or if that is already
> being done with automatic tests, document how you have determined this? This
> would then help mitigate what you're already identified in your regression
> analysis.

I added a list of commands in the test plan. As I said you just have to install
the package and the warning is gone. Then I just use kitty as a regular
terminal.

> It would also be nice to have dep3 headers in the quilt patches so that they
> can more easily be verified against upstream, but no need to re-upload just
> for that.

Yes. However I do not see my package anymore in -proposed. If I need to do a
new upload, I can remove the git headers and use dep3 headers instead and
propose a new debdiff for someone to sponsor.

description: updated
Agathe Porte (gagath)
Changed in kitty (Ubuntu Noble):
status: Incomplete → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.