tzlocal 3.0b1 breaks apscheduler
See original GitHub issueunleash-client-python
depends on apscheduler==3.6.3
:
https://github.com/Unleash/unleash-client-python/blob/master/setup.py#L24
apscheduler
depends on tzlocal >= 1.2
:
https://github.com/agronholm/apscheduler/blob/master/setup.cfg#L27
Installing unleash-client-python gets us tzlocal
3.0b1 through apscheduler
. tzlocal
3.0b1 breaks the compatibility:
File "/usr/local/lib/python3.6/site-packages/reconcile-0.2.2-py3.6.egg/utils/unleash.py", line 38, in get_feature_toggle_state client.initialize_client()
File "/usr/local/lib/python3.6/site-packages/UnleashClient-3.4.2-py3.6.egg/UnleashClient/__init__.py", line 141, in initialize_client kwargs=fl_args)
File "/usr/local/lib/python3.6/site-packages/APScheduler-3.6.3-py3.6.egg/apscheduler/schedulers/base.py", line 443, in add_job self._real_add_job(job, jobstore, replace_existing)
File "/usr/local/lib/python3.6/site-packages/APScheduler-3.6.3-py3.6.egg/apscheduler/schedulers/base.py", line 859, in _real_add_job replacements['next_run_time'] = job.trigger.get_next_fire_time(None, now)
File "/usr/local/lib/python3.6/site-packages/APScheduler-3.6.3-py3.6.egg/apscheduler/triggers/interval.py", line 66, in get_next_fire_time
return self.timezone.normalize(next_fire_time)
AttributeError: 'backports.zoneinfo.ZoneInfo' object has no attribute 'normalize'
Please either pin-point the tzlocal version you depend on or, at least, pin-point the maximum major version to tzlocal ~= 2.0
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
tzlocal - PyPI
This Python module returns a tzinfo object (with a pytz_deprecation_shim, for pytz compatibility) with the local timezone information, under Unix and Windows.
Read more >3.0b1 breaks unleash-client-python - githubmemory
unleash-client-python depends on apscheduler==3.6.3 ... Installing unleash-client-python gets us tzlocal 3.0b1, which breaks the compatibility:
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If app developers don’t pin their dependencies somehow then it’s their fault if their builds break. Assuming that they can update dependencies across major version changes without ever encountering backwards compatibility issues is simply ludicrous.
Fixed by b773c79.