Hi, I am using your library to read items from shared calendars which are listed in OWA as "Other calendars". This is working fine when the package is installed system-wide but not within virtual environments.
I have created a virtual environment using venv and installed your package. When reading "Other calendars" by their folder id, I retrieve items from the default calendar instead. When the virtual environment is deactivated I retrieve items from the other calendars as expected. I am using this code:
folder = SingleFolderQuerySet( account = a, folder = a.root, ).get(id = "MY_FOLDER_ID")
I have tried another piece of code found at #1184. Outside of the virtual environment I retrieve items from the other calendar as expected. Activating the virtual environment I am getting an error:
folder = SingleFolderQuerySet( account = a, folder = FolderId(id = "MY_FOLDER_ID"), ).resolve()
Traceback (most recent call last):
File "/.../exchange.py", line 73, in <module>
).resolve()
^^^^^^^^^
File "/.../my-venv/lib/python3.11/site-packages/exchangelib/folders/queryset.py", line 187, in resolve
return list(self.folder_collection.resolve())[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../my-venv/lib/python3.11/site-packages/exchangelib/folders/collections.py", line 335, in resolve
yield from self.__class__(account=self.account, folders=resolveable_folders).get_folders(
File "/.../my-venv/lib/python3.11/site-packages/exchangelib/folders/collections.py", line 403, in get_folders
yield from GetFolder(account=self.account).call(
File "/.../my-venv/lib/python3.11/site-packages/exchangelib/services/get_folder.py", line 55, in _elems_to_objs
yield parse_folder_elem(elem=elem, folder=folder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/.../my-venv/lib/python3.11/site-packages/exchangelib/services/common.py", line 979, in parse_folder_elem
raise ValueError(f"Unsupported folder class: {folder}")
ValueError: Unsupported folder class: FolderId(id='MY_FOLDER_ID')
Do you have any tips to get it working in virtual environments?
Thank you in advance.
Hi, I am using your library to read items from shared calendars which are listed in OWA as "Other calendars". This is working fine when the package is installed system-wide but not within virtual environments.
I have created a virtual environment using venv and installed your package. When reading "Other calendars" by their folder id, I retrieve items from the default calendar instead. When the virtual environment is deactivated I retrieve items from the other calendars as expected. I am using this code:
folder = SingleFolderQuerySet( account = a, folder = a.root, ).get(id = "MY_FOLDER_ID")I have tried another piece of code found at #1184. Outside of the virtual environment I retrieve items from the other calendar as expected. Activating the virtual environment I am getting an error:
folder = SingleFolderQuerySet( account = a, folder = FolderId(id = "MY_FOLDER_ID"), ).resolve()Do you have any tips to get it working in virtual environments?
Thank you in advance.