Giter VIP home page Giter VIP logo

Comments (5)

santiagozky avatar santiagozky commented on July 22, 2024

I have a similar issue. in addition I get this when flexget start:

tzlocal() does not support non-zoneinfo timezones like Europe/Madrid. \nPlease use a timezone in the form of Continent/City'

full error:

  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'

from flexget.

gazpachoking avatar gazpachoking commented on July 22, 2024

I have a similar issue. in addition I get this when flexget start:

tzlocal() does not support non-zoneinfo timezones like Europe/Madrid. \nPlease use a timezone in the form of Continent/City'

full error:

  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'

I think your issue is different. Python normally loads zone info files from the system. What OS are you on? Do you have a /user/share/zoneinfo/Europe/Madrid file?

from flexget.

santiagozky avatar santiagozky commented on July 22, 2024

hi @gazpachoking ,it's an ubuntu 22.10 container image.
I installed the tzdata package and now the error seems gone. is that supposed to be a dependency? (my python knowledge is near zero)

the container doesnt have a /usr/share/zoneinfo directory. I have no idea why 🤷‍♂️. I do have a /home/flexget/.local/lib/python3.10/site-packages/pytz/zoneinfo/Europe/Madrid, though
(and now /home/flexget/.local/lib/python3.10/site-packages/tzdata/zoneinfo/Europe/Madrid as well)

from flexget.

shadycuz avatar shadycuz commented on July 22, 2024

@gazpachoking @santiagozky I was just about to open an issue for this as well. I'm also using a ubuntu 22.00 container. Here is what I did to trigger the issue.

  1. Everything was running fine, Flexget was running as a daemon.
  2. I take my config file and I create a copy of it test.yml with some tweaks.
  3. I test my new config flexget -c test.yml check or w/e the command is. I notice it creates a db file and what not.
  4. Seeing that my new config is good, I backup my old and rename the test.yml to config.yml. My daemon has autoreload so I trust that it will read the new config. I go to bed.
  5. I wake up and I see nothing in my logs (web UI). I have tasks that run every 30mins and they did not run.
  6. I go to the container and I ask the daemon for that status but It says it cant find anything running. but I see the PID still
  7. I check the container logs and I see the TZ error above.
  8. I restart the container and the container fails with the same TZ error.
  9. I remove the TZ environment variable and it works fine again.

from flexget.

gazpachoking avatar gazpachoking commented on July 22, 2024

I installed the tzdata package and now the error seems gone. is that supposed to be a dependency? (my python knowledge is near zero)

Indeed, it looks like that may be necessary on certain platforms that don't include their own timezone data. Can someone please open another ticket to track this, as it has nothing to do with the original report.

from flexget.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.