invalid escape sequence '\%'

Bug #2053114 reported by Heinrich Schuchardt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Confirmed
Undecided
Unassigned

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):

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
C (nannerpuss) wrote :

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)
``

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
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.