[Bug 1904271] [NEW] Python 3.9 package is missing dependency on tzdata
Christian Heimes
1904271 at bugs.launchpad.net
Sat Nov 14 10:49:30 UTC 2020
Public bug reported:
Python 3.9 introduced the stdlib module "zoneinfo". The module either
uses the operating sytem's tzdata database or the tzdata Python package.
See https://www.python.org/dev/peps/pep-0615/ for more information.
Debian's and Ubuntu's python3.9 package is missing a dependency on
tzdata. This breaks the zoneinfo module in a minimal container:
$ docker run -ti ubuntu:groovy /bin/bash
# apt update
# apt install -y python3.9
# dpkg -l python3.9
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=============================================================
ii python3.9 3.9.0-5 amd64 Interactive high-level object-oriented language (version 3.9)
# python3.9 -c 'import zoneinfo; zoneinfo.ZoneInfo("CET")'
...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key CET'
Anthony Sottile addressed the issue in his Deadsnakes PPA already, https://github.com/deadsnakes/python3.9/commit/d8216a1f585dac9db805d4e3c57f29535cf84cf8
** Affects: python3.9 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.9 in Ubuntu.
https://bugs.launchpad.net/bugs/1904271
Title:
Python 3.9 package is missing dependency on tzdata
Status in python3.9 package in Ubuntu:
New
Bug description:
Python 3.9 introduced the stdlib module "zoneinfo". The module either
uses the operating sytem's tzdata database or the tzdata Python
package. See https://www.python.org/dev/peps/pep-0615/ for more
information.
Debian's and Ubuntu's python3.9 package is missing a dependency on
tzdata. This breaks the zoneinfo module in a minimal container:
$ docker run -ti ubuntu:groovy /bin/bash
# apt update
# apt install -y python3.9
# dpkg -l python3.9
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=============================================================
ii python3.9 3.9.0-5 amd64 Interactive high-level object-oriented language (version 3.9)
# python3.9 -c 'import zoneinfo; zoneinfo.ZoneInfo("CET")'
...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/zoneinfo/_common.py", line 24, in load_tzdata
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key CET'
Anthony Sottile addressed the issue in his Deadsnakes PPA already, https://github.com/deadsnakes/python3.9/commit/d8216a1f585dac9db805d4e3c57f29535cf84cf8
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.9/+bug/1904271/+subscriptions
More information about the foundations-bugs
mailing list