Python 3.9 package is missing dependency on tzdata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.9 (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
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:/
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=
| Status=
|/ Err?=(none)
||/ 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.
...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
raise ZoneInfoNotFoun
zoneinfo.
Anthony Sottile addressed the issue in his Deadsnakes PPA already, https:/
# export DEBIAN_ FRONTEND= "noninteractive " ZoneInfo( "CET")) '
# apt install -yq tzdata
# python3.9 -c 'import zoneinfo; print(zoneinfo.
CET