Skip to content

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

@slawomirkolodziej

Description

@slawomirkolodziej

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions