merge-api / merge-sdk-python

The Python SDK for accessing various Merge Unified APIs
Other
0 stars 1 forks source link

No module named 'MergePythonSDK.hris.model.selective_sync_configurations_usage_enum' #23

Open slawomirkolodziej opened 1 year ago

slawomirkolodziej commented 1 year ago

When trying to call SyncStatusApi(sdk_client).sync_status_list I'm receiving No module named 'MergePythonSDK.hris.model.selective_sync_configurations_usage_enum' error. This started happening after I upgraded the SDK to the 2.2.7 version.

The bug seems to be in this line https://github.com/merge-api/merge-sdk-python/blob/main/MergePythonSDK/hris/model/sync_status.py#L42. SelectiveSyncConfigurationsUsageEnum is being imported from a file that doesn't exist.

I got around this issue by manually patching a module:

from MergePythonSDK.hris.model import sync_status

sync_status.SyncStatus.openapi_types = patch_openapi_types()
slawomirkolodziej commented 1 year ago

@akatipally I see you were responsible for releasing 2.2.7 version so I wanted to mention you here.

The issue above is breaking the usage of sync_status_list in PythonSDK.