[Bug 2053114] Re: invalid escape sequence '\%'
C
2053114 at bugs.launchpad.net
Wed Feb 14 10:48:09 UTC 2024
Same here, but I'm on WSL2 with Ubuntu-Preview so A) This is to be
expected B) Not sure if this is even the place to submit a ticket or
post about it. But this is the first and only real Google result, so
here's a very minimal cropped ``ubuntu-bug`` report with relevant info:
``
ProblemType: Bug
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
DistroRelease: Ubuntu 24.04
JournalErrors:
Package: ubuntu-release-upgrader-core 1:24.04.7
ProcEnviron:
LANG=en_US
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
Tags: noble wayland-session dist-upgrade
Uname: Linux 5.15.146.1-microsoft-standard-WSL2 x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
``
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2053114
Title:
invalid escape sequence '\%'
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Bug description:
python3-distupgrade produces syntax errors:
Setting up python3-distupgrade (1:24.04.7) ...
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeGettext.py:33: SyntaxWarning: invalid escape sequence '\%'
arguments_in_message = message.count("%") - message.count("\%")
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeGettext.py:34: SyntaxWarning: invalid escape sequence '\%'
arguments_in_translation = translated.count("%") - translated.count("\%")
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:400: SyntaxWarning: invalid escape sequence '\s'
if re.search("^cpu\s*:\s*POWER8", cpuinfo, re.MULTILINE):
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:448: SyntaxWarning: invalid escape sequence '\-'
re.compile("ros-[^\-]+-%s" % package_name))
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:557: SyntaxWarning: invalid escape sequence '\s'
if re.search("^Processor\s*:\s*ARMv[45]", cpuinfo,
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:642: SyntaxWarning: invalid escape sequence '\*'
if re.search("^ \* PASS", connected[0], re.MULTILINE):
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:646: SyntaxWarning: invalid escape sequence '\*'
elif re.search("^ \*.*unreachable", connected[0], re.MULTILINE):
/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeQuirks.py:780: SyntaxWarning: invalid escape sequence '\s'
if re.search("^flags\s+:.* pae ", cpuinfo, re.MULTILINE):
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2053114/+subscriptions
More information about the foundations-bugs
mailing list