After configure the app, I started it and raises this error below:
Traceback (most recent call last): File "GeoHealthCheck/app.py", line 83, in <module> start_schedule() File "/home/mota/vscode/GeoHealthCheck/GeoHealthCheck/scheduler.py", line 189, in start_schedule scheduler.add_job(flush_runs, 'interval', minutes=150) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 420, in add_job 'trigger': self._create_trigger(trigger, trigger_args), File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 921, in _create_trigger return self._create_plugin_instance('trigger', trigger, trigger_args) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 906, in _create_plugin_instance return plugin_cls(**constructor_kwargs) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/triggers/interval.py", line 38, in __init__ self.timezone = astimezone(timezone) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/util.py", line 84, in astimezone raise TypeError('Only timezones from the pytz library are supported') TypeError: Only timezones from the pytz library are supported
Seacrhing on Google, I've found a issue in ApScheduler that desribes the version required by tzlocal module is < 3.0 to work on ApScheduler. In this setup, the version installed is 3.0. I've set this requirement and the app works.
In addition, I'm sending the pt_BR PO to add Brazilian Portuguese to the list of supported languages.
Hi all
After configure the app, I started it and raises this error below:
Traceback (most recent call last): File "GeoHealthCheck/app.py", line 83, in <module> start_schedule() File "/home/mota/vscode/GeoHealthCheck/GeoHealthCheck/scheduler.py", line 189, in start_schedule scheduler.add_job(flush_runs, 'interval', minutes=150) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 420, in add_job 'trigger': self._create_trigger(trigger, trigger_args), File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 921, in _create_trigger return self._create_plugin_instance('trigger', trigger, trigger_args) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/schedulers/base.py", line 906, in _create_plugin_instance return plugin_cls(**constructor_kwargs) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/triggers/interval.py", line 38, in __init__ self.timezone = astimezone(timezone) File "/home/mota/vscode/GeoHealthCheck/venv/lib/python3.8/site-packages/apscheduler/util.py", line 84, in astimezone raise TypeError('Only timezones from the pytz library are supported') TypeError: Only timezones from the pytz library are supported
Seacrhing on Google, I've found a issue in ApScheduler that desribes the version required by tzlocal module is < 3.0 to work on ApScheduler. In this setup, the version installed is 3.0. I've set this requirement and the app works.
In addition, I'm sending the pt_BR PO to add Brazilian Portuguese to the list of supported languages.