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

zoneinfo._common.ZoneInfoNotFoundError: tzlocal() does not support non-zoneinfo timezones like Europe/Madrid. #3889

Open
shadycuz opened this issue Nov 29, 2023 · 1 comment
Labels

Comments

@shadycuz
Copy link
Contributor

Expected behaviour:

#3809 has some more detail. Flexget fails to start because TZ data is missing in certain situations.

Actual behaviour:

Steps to reproduce:

This has been reproduced on certain version of ubuntu 22 containers.

Log:

(click to expand)
  File "/home/flexget/.local/bin/flexget", line 8, in <module>
    sys.exit(main())
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/__init__.py", line 55, in main
    manager.start()
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/manager.py", line 366, in start
    self.handle_cli()
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/manager.py", line 392, in handle_cli
    self.daemon_command(command_options)
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/manager.py", line 489, in daemon_command
    run_daemon()
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/manager.py", line 470, in run_daemon
    fire_event('manager.daemon.started', self)
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/event.py", line 108, in fire_event
    result = event(*args, **kwargs)
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/home/flexget/.local/lib/python3.10/site-packages/flexget/components/scheduler/scheduler.py", line 124, in setup_scheduler
    scheduler = BackgroundScheduler(
  File "/home/flexget/.local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 97, in __init__
    self.configure(gconfig, **options)
  File "/home/flexget/.local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 141, in configure
    self._configure(config)
  File "/home/flexget/.local/lib/python3.10/site-packages/apscheduler/schedulers/background.py", line 29, in _configure
    super(BackgroundScheduler, self)._configure(config)
  File "/home/flexget/.local/lib/python3.10/site-packages/apscheduler/schedulers/base.py", line 711, in _configure
    self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
  File "/home/flexget/.local/lib/python3.10/site-packages/tzlocal/unix.py", line 218, in get_localzone
    _cache_tz = _get_localzone()
  File "/home/flexget/.local/lib/python3.10/site-packages/tzlocal/unix.py", line 175, in _get_localzone
    tzenv = utils._tz_from_env()
  File "/home/flexget/.local/lib/python3.10/site-packages/tzlocal/utils.py", line 109, in _tz_from_env
    raise zoneinfo.ZoneInfoNotFoundError(
zoneinfo._common.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like Europe/Madrid. \nPlease use a timezone in the form of Continent/City'

Additional information:

  • FlexGet version: 3.10.1
  • Python version: unknown
  • Installation method: pip
  • Using daemon (yes/no): yes
  • OS and version: ubuntu 22.XX
  • Link to crash log:
Copy link

This issue is stale because it has been open 150 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant