2021-06-08 01:18:02 |
Seth Arnold |
bug |
|
|
added bug |
2021-06-09 13:17:35 |
Sergio Durigan Junior |
genshi (Ubuntu): status |
New |
Triaged |
|
2021-06-09 13:17:37 |
Sergio Durigan Junior |
genshi (Ubuntu): importance |
Undecided |
Low |
|
2021-06-09 13:23:12 |
Sergio Durigan Junior |
nominated for series |
|
Ubuntu Focal |
|
2021-06-09 13:23:12 |
Sergio Durigan Junior |
bug task added |
|
genshi (Ubuntu Focal) |
|
2021-06-09 13:23:23 |
Sergio Durigan Junior |
genshi (Ubuntu Focal): status |
New |
Triaged |
|
2021-06-09 13:23:26 |
Sergio Durigan Junior |
genshi (Ubuntu Focal): importance |
Undecided |
Low |
|
2021-06-09 13:23:29 |
Sergio Durigan Junior |
genshi (Ubuntu): status |
Triaged |
Fix Released |
|
2021-06-09 14:24:40 |
Sergio Durigan Junior |
bug |
|
|
added subscriber Ubuntu Server |
2021-10-20 12:33:43 |
Athos Ribeiro |
tags |
amd64 apport-bug focal |
amd64 apport-bug bitesize focal |
|
2022-06-28 16:38:48 |
Michał Małoszewski |
genshi (Ubuntu Focal): assignee |
|
Michał Małoszewski (michal-maloszewski99) |
|
2022-07-07 14:12:26 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~michal-maloszewski99/ubuntu/+source/genshi/+git/genshi/+merge/426485 |
|
2022-07-07 14:20:43 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~michal-maloszewski99/ubuntu/+source/genshi/+git/genshi/+merge/426487 |
|
2022-07-07 14:27:02 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~michal-maloszewski99/ubuntu/+source/genshi/+git/genshi/+merge/426489 |
|
2022-07-07 15:27:17 |
Michał Małoszewski |
genshi (Ubuntu Focal): status |
Triaged |
In Progress |
|
2022-07-12 08:32:19 |
Christian Ehrhardt |
description |
$ sudo apt install python3-genshi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
doc-base python-genshi-doc
The following NEW packages will be installed:
python3-genshi
0 upgraded, 1 newly installed, 0 to remove and 44 not upgraded.
Need to get 121 kB of archives.
After this operation, 914 kB of additional disk space will be used.
Get:1 http://192.168.0.27/ubuntu focal/main amd64 python3-genshi all 0.7.3-0ubuntu3 [121 kB]
Fetched 121 kB in 0s (3,179 kB/s)
Selecting previously unselected package python3-genshi.
(Reading database ... 229776 files and directories currently installed.)
Preparing to unpack .../python3-genshi_0.7.3-0ubuntu3_all.deb ...
Unpacking python3-genshi (0.7.3-0ubuntu3) ...
Setting up python3-genshi (0.7.3-0ubuntu3) ...
/usr/lib/python3/dist-packages/genshi/filters/i18n.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="?
assert numeral is not '', "at least pass the numeral param"
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3-genshi 0.7.3-0ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-71.79-generic 5.4.101
Uname: Linux 5.4.0-71-generic x86_64
NonfreeKernelModules: lkp_Ubuntu_5_4_0_71_79_generic_77 lkp_Ubuntu_5_4_0_71_79_generic_76 zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Jun 8 01:16:44 2021
Dependencies:
PackageArchitecture: all
ProcEnviron:
TERM=rxvt-unicode-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: genshi
UpgradeStatus: Upgraded to focal on 2020-01-24 (500 days ago) |
[Impact]
The deprecation message shown in below example by the bug reporter isn't helpful to anyone since the user isn’t in a position to update the version of the library being used. It may discourage the user from working with that package. We deprecate lots of things in between releases anyway, so the accidental early warning for just one random item isn’t particularly useful. And developers might be misled into thinking that these deprecations apply to their code and not to the distro-shipped libraries. Finally, it’s just a bad look. Anyway it is worth the candle to fix it, because it should be straightforward and low risk. There is only need to replace the literal “is not” with “!=”. It looks non-professional.
Backport upstream fix to Focal
[Test Plan]
** Reproduction **
Message:
Unpacking python3-genshi (0.7.3-0ubuntu3) ...
Setting up python3-genshi (0.7.3-0ubuntu3) ...
/usr/lib/python3/dist-packages/genshi/filters/i18n.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="?
assert numeral is not '', "at least pass the numeral param"
Make a container for testing:
First option:
$ lxc launch images:ubuntu/jammy jammy-test
$ lxc shell jammy-test
Then type in:
$ apt install python3-genshi
You shouldn’t notice neither warning nor error message.
Second one attempt:
$ lxc launch images:ubuntu/foca focal-test
$ lxc shell focal-test
Then type in:
$ apt install python3-genshi
Now you will notice the warning message unless fixed.
** Verification **
Follow the reproduction steps above to ensure that the warning messages no longer appear.
[Where problems could occur]
Any code change might change the behavior of the package in a specific situation and cause other errors - but that particular change is small and looks safe in that regard.
It is only an Assert and functionally equivalent, so we expect no change in behavior. The new syntax is supported way back in time and there should be no python version out there not able to work with the new code.
The old issue was only a warning, so fixing it does not change functional behavior (e.g. return codes or results) except getting rid of the warning message
--- original report ---
$ sudo apt install python3-genshi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
doc-base python-genshi-doc
The following NEW packages will be installed:
python3-genshi
0 upgraded, 1 newly installed, 0 to remove and 44 not upgraded.
Need to get 121 kB of archives.
After this operation, 914 kB of additional disk space will be used.
Get:1 http://192.168.0.27/ubuntu focal/main amd64 python3-genshi all 0.7.3-0ubuntu3 [121 kB]
Fetched 121 kB in 0s (3,179 kB/s)
Selecting previously unselected package python3-genshi.
(Reading database ... 229776 files and directories currently installed.)
Preparing to unpack .../python3-genshi_0.7.3-0ubuntu3_all.deb ...
Unpacking python3-genshi (0.7.3-0ubuntu3) ...
Setting up python3-genshi (0.7.3-0ubuntu3) ...
/usr/lib/python3/dist-packages/genshi/filters/i18n.py:352: SyntaxWarning: "is not" with a literal. Did you mean "!="?
assert numeral is not '', "at least pass the numeral param"
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: python3-genshi 0.7.3-0ubuntu3
ProcVersionSignature: Ubuntu 5.4.0-71.79-generic 5.4.101
Uname: Linux 5.4.0-71-generic x86_64
NonfreeKernelModules: lkp_Ubuntu_5_4_0_71_79_generic_77 lkp_Ubuntu_5_4_0_71_79_generic_76 zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Jun 8 01:16:44 2021
Dependencies:
PackageArchitecture: all
ProcEnviron:
TERM=rxvt-unicode-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: genshi
UpgradeStatus: Upgraded to focal on 2020-01-24 (500 days ago) |
|
2022-07-20 14:14:14 |
Robie Basak |
genshi (Ubuntu Focal): status |
In Progress |
Fix Committed |
|
2022-07-20 14:14:15 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2022-07-20 14:14:17 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2022-07-20 14:14:19 |
Robie Basak |
tags |
amd64 apport-bug bitesize focal |
amd64 apport-bug bitesize focal verification-needed verification-needed-focal |
|
2022-07-20 19:48:39 |
Seth Arnold |
tags |
amd64 apport-bug bitesize focal verification-needed verification-needed-focal |
amd64 apport-bug bitesize focal verification-done-focal verification-needed |
|
2022-08-01 12:38:09 |
Launchpad Janitor |
genshi (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2022-08-01 12:38:13 |
Robie Basak |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|