Skip to content

'No time zone found with key EST' in debian 13Β #1579

@danielhoherd

Description

@danielhoherd

Description

In debian 13, the tzdata package has changed and no longer includes timezones like EST. Code within python-kasa is causing it to break when used in debian 13, whereas the same code functions fine in debian 12.

Workaround

A bandaid for this is to install the tzdata-legacy package, which includes the deprecated timezones.

Examples

Both of these examples were set up by running a docker container and then:

apt update && apt install -y curl
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
uv tool install python-kasa

Debian 12

A working command:

root@a33d3da471be:/# kasa --host 192.168.9.79 off
Discovering device 192.168.9.79 for 10 seconds
Turning off Office AA0F

And some debug info:

root@a33d3da471be:/# head -n1 /root/.local/bin/kasa
#!/root/.local/share/uv/tools/python-kasa/bin/python
root@a33d3da471be:/# /root/.local/share/uv/tools/python-kasa/bin/python --version
Python 3.13.7
root@a33d3da471be:/# kasa --version
kasa, version 0.10.2
root@a33d3da471be:/# ls /usr/share/zoneinfo/EST
/usr/share/zoneinfo/EST
root@a33d3da471be:/# dpkg -l tzdata
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  tzdata         2025b-0+deb12u2 all          time zone and daylight-saving time data

Debian 13

A failing command:

root@1332b6287f11:/# kasa --host 192.168.9.79 off
Discovering device 192.168.9.79 for 10 seconds
Raised error: 'No time zone found with key EST'
Run with --debug enabled to see stacktrace

And some debug info:

root@1332b6287f11:/# head -n1 /root/.local/bin/kasa
#!/root/.local/share/uv/tools/python-kasa/bin/python
root@1332b6287f11:/# /root/.local/share/uv/tools/python-kasa/bin/python --version
Python 3.13.7
root@1332b6287f11:/# kasa --version
kasa, version 0.10.2
root@1332b6287f11:/# ls /usr/share/zoneinfo/EST
ls: cannot access '/usr/share/zoneinfo/EST': No such file or directory
root@1332b6287f11:/# dpkg -l tzdata
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  tzdata         2025b-4+deb13u1 all          time zone and daylight-saving time data

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions