/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \

Bug #1948723 reported by Norbert
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Onboard
New
Undecided
Unassigned
onboard (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to reproduce:
1. Install or reinstall Onboard with

    sudo apt-get install --reinstall onboard onboard-common onboard-data

Expected results:
* no warnings

Actual results:
* the following warning is shown -

```
$ sudo apt-get install --reinstall onboard onboard-common onboard-data
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 5 217 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 onboard-common all 1.4.1-5build4 [595 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 onboard amd64 1.4.1-5build4 [380 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/universe amd64 onboard-data all 1.4.1-5build4 [4 242 kB]
Fetched 5 217 kB in 2s (2 938 kB/s)
(Reading database ... 243599 files and directories currently installed.)
Preparing to unpack .../onboard-common_1.4.1-5build4_all.deb ...
Unpacking onboard-common (1.4.1-5build4) over (1.4.1-5build4) ...
Preparing to unpack .../onboard_1.4.1-5build4_amd64.deb ...
Unpacking onboard (1.4.1-5build4) over (1.4.1-5build4) ...
Preparing to unpack .../onboard-data_1.4.1-5build4_all.deb ...
Unpacking onboard-data (1.4.1-5build4) over (1.4.1-5build4) ...
Setting up onboard-common (1.4.1-5build4) ...
Setting up onboard (1.4.1-5build4) ...
/usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py:447: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma?
  raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \
Processing triggers for mailcap (3.70ubuntu1) ...
Processing triggers for bamfdaemon (0.5.5+21.10.20210710-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.68.4-1ubuntu1) ...
Processing triggers for man-db (2.9.4-2build1) ...
Setting up onboard-data (1.4.1-5build4) ...

```

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: onboard 1.4.1-5build4
ProcVersionSignature: Ubuntu 5.13.0-19.19-generic 5.13.14
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Tue Oct 26 01:08:47 2021
InstallationDate: Installed on 2021-10-24 (1 days ago)
InstallationMedia: Ubuntu-MATE 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20211024)
SourcePackage: onboard
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Jason (jason-pfeil) wrote :

I believe that the patch below will fix the issue:

--- /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py.orig 2021-12-20 22:34:49.184112471 -0500
+++ /usr/lib/python3/dist-packages/Onboard/LayoutLoaderSVG.py 2021-12-20 22:33:33.374611161 -0500
@@ -445,7 +445,7 @@
             except KeyError as ex:
                 (strerror) = ex
                 raise Exceptions.LayoutFileError("Unrecognized modifier %s in" \
- "definition of %s" (strerror, full_id))
+ "definition of %s".format(strerror, full_id))

         value = attributes.get("action")
         if value:

Revision history for this message
Norbert (nrbrtx) wrote :

Please attach patch as file and add "patch" tag.

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

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

Changed in onboard (Ubuntu):
status: New → Confirmed
Revision history for this message
Leo Chen (chun-leichen) wrote :

Got same error when install Unity on Ubuntu Server 20.04 LTS 32-bit for Raspberry Pi.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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