Hi,
i'm trying to write a simple script for reading calendars events. but I get the error in the title if I just install O365 with pip.
The error occurs with the following packages installed:
Traceback (most recent call last):
File "c:\[redacted]\main.py", line 39, in <module>
main()
File "c:\[redacted]\main.py", line 34, in main
for event in events:
File "C:\[redacted]\AppData\Local\anaconda3\envs\work\Lib\site-packages\O365\calendar.py", line 1805, in <genexpr>
events = (self.event_constructor(parent=self,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\[redacted]\AppData\Local\anaconda3\envs\work\Lib\site-packages\O365\calendar.py", line 911, in __init__
self.__recurrence = EventRecurrence(event=self,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\[redacted]\AppData\Local\anaconda3\envs\work\Lib\site-packages\O365\calendar.py", line 137, in __init__
get_windows_tz(self.protocol.timezone))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\[redacted]\AppData\Local\anaconda3\envs\work\Lib\site-packages\O365\utils\windows_tz.py", line 638, in get_windows_tz
iana_tz.zone if isinstance(iana_tz, tzinfo) else iana_tz)
AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'zone'
If I roll back to tzlocal 2.1 pip complains that tzlocal should be >= 5.0 but i don't get the error anymore.
ps: typechecking will broke with all the class constructors type with * | None... not really a problem BTW.
pps: probably a problem of conda, but installing O365 with conda install is nearly impossible
Hi, i'm trying to write a simple script for reading calendars events. but I get the error in the title if I just install O365 with pip. The error occurs with the following packages installed:
Full Error:
If I roll back to tzlocal 2.1 pip complains that tzlocal should be >= 5.0 but i don't get the error anymore.
ps: typechecking will broke with all the class constructors type with * | None... not really a problem BTW. pps: probably a problem of conda, but installing O365 with conda install is nearly impossible