Comments (5)
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.
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.
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.
@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.
- Everything was running fine, Flexget was running as a daemon.
- I take my config file and I create a copy of it
test.yml
with some tweaks. - 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. - Seeing that my new config is good, I backup my old and rename the
test.yml
toconfig.yml
. My daemon has autoreload so I trust that it will read the new config. I go to bed. - I wake up and I see nothing in my logs (web UI). I have tasks that run every 30mins and they did not run.
- 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
- I check the container logs and I see the TZ error above.
- I restart the container and the container fails with the same TZ error.
- I remove the TZ environment variable and it works fine again.
from flexget.
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)
- Plugin imdb fails to filter? HOT 10
- Any way to change the time in "Tasks - Latest Executions" from GMT to local time? HOT 2
- Support newer setuptools HOT 1
- libtorrent package required HOT 7
- Unable to download the RSS tag with YGGTORRENT HOT 1
- IRC Error.
- Can Flexget add or subtract a number from a series ID? HOT 1
- zoneinfo._common.ZoneInfoNotFoundError: tzlocal() does not support non-zoneinfo timezones like Europe/Madrid.
- Season Pack not Being Identified as Such HOT 1
- Duplicate movie lists causing "Multiple rows were found when exactly one was required" HOT 2
- pendulum-3.0.0 Dependency HOT 13
- [I need help]
- Unhandled exception in notify/discord
- can't compare offset-naive and offset-aware datetimes HOT 5
- Docker - Cannot connect to transmission: Connection timed out. HOT 1
- Transmission-rpc version issues in latest docker image HOT 2
- imdb_lookup 403
- fix cgi deprecation warning HOT 2
- next_sonarr_episode crash since upgrade url v3
- unknown url type error should NOT be reported for magnet URIs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexget.