Comments (7)
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.
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.
from flexget.
This issue has been stale for 30 days and is being closed.
from flexget.
Related Issues (20)
- all rss feed items are downloaded every times rss feed is fetched HOT 5
- filter seen doesn't work if fields changed HOT 7
- Solved: ".config-lock was found" ; Flexget Docker container stuck in "restarting (1) x# of seconds ago"
- IRC Python 3.12 compatibility
- How To Make Flexget Check ifA Local paht
- FlexGet stopped updating my imdb_watchlist HOT 9
- Telegram all time no chat_id found
- IMDB plugin crashing HOT 10
- Statement is returning 'NoneType' object has no attribute 'tzinfo' HOT 4
- free_space plugin should support user home paths (~) HOT 1
- Flexget crashes on missing Telegram module HOT 1
- Trakt_lookup wrong movie
- anidb_list plugin AttributeError: 'NoneType' object has no attribute 'find'
- deluge and from_deluge: Unhandled error in plugin from_deluge: module 'ssl' has no attribute 'wrap_socket' HOT 1
- Failed do add jackett links to qbittorrent HOT 1
- Unhandled error in plugin seen: 'str' object has no attribute 'tzinfo'
- flexget fails to build with python-3.13
- Error on a step of Sequence plugin aborts task HOT 1
- The https://flexget.com/ TLS/SSL certificate expired on 2024-08-11 HOT 1
- Action "purge" of Torrent Cleanup Task Removes Files Only Rather Than Whole Parent Directories
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.