I am experiencing a dependency issue with "pendulum" in prefect that doesnt seem to make sense; I am...
g

Grayson Wagstaff

about 1 year ago
I am experiencing a dependency issue with "pendulum" in prefect that doesnt seem to make sense; I am attempting to add "msgraph-sdk" package to my internal package ("prefect-trellis") but getting this error from poetry:
Because no versions of msgraph-sdk match >1.4.0,<2.0.0
 and msgraph-sdk (1.4.0) depends on microsoft-kiota-serialization-form (>=0.1.0), msgraph-sdk (>=1.4.0,<2.0.0) requires microsoft-kiota-serialization-form (>=0.1.0).
And because no versions of microsoft-kiota-serialization-form match >0.1.0
 and microsoft-kiota-serialization-form (0.1.0) depends on pendulum (>=3.0.0), msgraph-sdk (>=1.4.0,<2.0.0) requires pendulum (>=3.0.0).
And because prefect (2.19.6) depends on pendulum (<3.0)
 and no versions of prefect match >2.19.6,<3.0.0, msgraph-sdk (>=1.4.0,<2.0.0) is incompatible with prefect (>=2.19.6,<3.0.0).
So, because prefect-trellis depends on both prefect (^2.19.6) and msgraph-sdk (^1.4.0), version solving failed.
reading this, it seems like Prefect has a dependency on pendulum < 3.0 while graph-sdk has dependency on pendulum >= 3.0; however checking prefect's requirement, I only see pendulum referenced in the client which requires pendulum >= 3.0.0, <4 https://github.com/PrefectHQ/prefect/blob/2c25cd0df52959d9c499cc0487ec52d7afe04dc8/requirements-client.txt#L21. Is this dependency on pendulum < 3.0 intended for the main prefect package?