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

Headphones Not Starting - TZData Missing Module #3345

Open
whereswaller opened this issue Jul 26, 2024 · 2 comments
Open

Headphones Not Starting - TZData Missing Module #3345

whereswaller opened this issue Jul 26, 2024 · 2 comments

Comments

@whereswaller
Copy link

whereswaller commented Jul 26, 2024

Hi,
Headphones is not starting on my computer, I'm unclear when this began as I've been away for some time.

I'm running Python 3.12.4. and the latest version of Headphones.

Any help you can offer is greatly appreciated. Output from CMD in Windows 10 below:

c:\Headphones>py c:\Headphones\Headphones.py -d
Traceback (most recent call last):
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\zoneinfo_common.py", line 12, in load_tzdata
return resources.files(package_name).joinpath(resource_name).open("rb")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\importlib\resources_common.py", line 46, in wrapper
return func(anchor)
^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\importlib\resources_common.py", line 56, in files
return from_package(resolve(anchor))
^^^^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\functools.py", line 909, in wrapper
return dispatch(args[0].class)(*args, **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\importlib\resources_common.py", line 82, in _
return importlib.import_module(cand)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\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 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 "c:\Headphones\Headphones.py", line 27, in
from headphones import webstart, logger
File "c:\Headphones\headphones_init_.py", line 68, in
SCHED = BackgroundScheduler()
^^^^^^^^^^^^^^^^^^^^^
File "c:\Headphones\lib\apscheduler\schedulers\base.py", line 87, in init
self.configure(gconfig, **options)
File "c:\Headphones\lib\apscheduler\schedulers\base.py", line 131, in configure
self._configure(config)
File "c:\Headphones\lib\apscheduler\schedulers\background.py", line 29, in _configure
super(BackgroundScheduler, self)._configure(config)
File "c:\Headphones\lib\apscheduler\schedulers\base.py", line 701, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
^^^^^^^^^^^^^^^
File "c:\Headphones\lib\tzlocal\win32.py", line 129, in get_localzone
_cache_tz = zoneinfo.ZoneInfo(get_localzone_name())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\James\AppData\Local\Programs\Python\Python312\Lib\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 Australia/Sydney'

@AdeHub
Copy link
Collaborator

AdeHub commented Jul 26, 2024

Have a read through this thread

#3340

@whereswaller
Copy link
Author

Thank you, this worked. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants