Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytz deprecation warning from dependency vobject #3751

Closed
ethrgeist opened this issue Nov 30, 2023 · 2 comments
Closed

pytz deprecation warning from dependency vobject #3751

ethrgeist opened this issue Nov 30, 2023 · 2 comments

Comments

@ethrgeist
Copy link
Contributor

Problem and impact

Log entry shows:

/usr/local/lib/python3.11/site-packages/vobject/icalendar.py:341: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  if hasattr(tzinfo, 'zone'):
/usr/local/lib/python3.11/site-packages/vobject/icalendar.py:342: PytzUsageWarning: The zone attribute is specific to pytz's interface; please migrate to a new time zone provider. For more details on how to do so, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  return toUnicode(tzinfo.zone)
/usr/local/lib/python3.11/site-packages/vobject/icalendar.py:1744: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
return tzinfo.localize(datetime.datetime(year, month, day, hour, minute, second))

There are 3 issues with this file, it does not look like eventable/vobject is maintained any more

Expected behaviour

Unsure, either the project needs a fork to atleast migrate the Pytz changes, or Pretix needs a replacement for this library.

Steps to reproduce

No response

Screenshots

No response

Link

No response

Browser (software, desktop or mobile?) and version

No response

Operating system, dependency versions

No response

Version

2023.9.0

@ethrgeist
Copy link
Contributor Author

cc: #2428

@raphaelm
Copy link
Member

Yes, this is a duplicate of #2428

@raphaelm raphaelm closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants