question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tzlocal 3.0b1 breaks apscheduler

See original GitHub issue

unleash-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:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
agronholmcommented, Sep 24, 2020

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.

0reactions
agronholmcommented, Jan 9, 2021

Fixed by b773c79.

Read more comments on GitHub >

github_iconTop 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 >
Bountysource
tzlocal 3.0b1 breaks apscheduler.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found