Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No time zone found with key CST6CDT #1467

Open
XtraordinairDEV opened this issue Jan 20, 2025 · 0 comments
Open

No time zone found with key CST6CDT #1467

XtraordinairDEV opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@XtraordinairDEV
Copy link

XtraordinairDEV commented Jan 20, 2025

This error pops up everytime I try to run any kasa command. Started in 0.7.5 (0.7.4 works). Errors out and nothing gets executed.

Running on android termux

$ kasa --host 192.168.1.XX on --debug Discovering device 192.168.1.XX for 10 seconds Raised error: 'No time zone found with key CST6CDT' Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.12/zoneinfo/_common.py", line 12, in load_tzdata return resources.files(package_name).joinpath(resource_name).open("rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/importlib/resources/_common.py", line 46, in wrapper return func(anchor) ^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/importlib/resources/_common.py", line 56, in files return from_package(resolve(anchor)) ^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/functools.py", line 909, in wrapper return dispatch(args[0].class)(*args, **kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/importlib/resources/_common.py", line 82, in _ return importlib.import_module(cand) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1310, in _find_and_load_unlocked File "", line 488, in _call_with_frames_removed File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1324, in _find_and_load_unlocked ModuleNotFoundError: No module named 'tzdata' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/kasa", line 8, in sys.exit(cli()) ^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cli/common.py", line 253, in call asyncio.run(self.main(*args, **kwargs)) File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/asyncio/base_events.py", line 686, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/asyncclick/core.py", line 1120, in main rv = await self.invoke(ctx) ^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cli/common.py", line 241, in invoke _handle_exception(self._debug, exc) File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cli/common.py", line 239, in invoke return await super().invoke(ctx) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/asyncclick/core.py", line 1736, in invoke await super().invoke(ctx) File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/asyncclick/core.py", line 1485, in invoke return await ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/asyncclick/core.py", line 824, in invoke rv = await rv ^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cli/main.py", line 364, in cli await dev.update() File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/iot/iotdevice.py", line 326, in update await module._post_update_hook() File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/iot/modules/time.py", line 28, in _post_update_hook self._timezone = await get_timezone(res.get("index")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/iot/iottimezone.py", line 24, in get_timezone return await CachedZoneInfo.get_cached_zone_info(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cachedzoneinfo.py", line 20, in get_cached_zone_info zinfo = await loop.run_in_executor(None, _get_zone_info, time_zone_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/concurrent/futures/thread.py", line 59, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/kasa/cachedzoneinfo.py", line 27, in _get_zone_info return ZoneInfo(time_zone_str) ^^^^^^^^^^^^^^^^^^^^^^^ File "/data/data/com.termux/files/usr/lib/python3.12/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 CST6CDT'

@rytilahti rytilahti changed the title [Bug] No time zone found with key CST6CDT No time zone found with key CST6CDT Jan 20, 2025
@rytilahti rytilahti added the bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants