Description
Hi everyone,
I am trying to get the Temporal Python SDK to work within GraalPy. I was able to get graalpy -m pip install temporalio
to succeed including building the wheel (requires Rust and protoc).
However, when trying to run a Python script that uses Temporal, it fails with the following error:
ImportError: cannot load ~/linux-temporal-env/lib/python3.11/site-packages/temporalio/bridge/temporal_sdk_bridge.pyd: NFIUnsatisfiedLinkError: ~/linux-temporal-env/lib/python3.11/site-packages/temporalio/bridge/temporal_sdk_bridge.pyd: undefined symbol: _Py_FalseStruct
In my understanding, the issue seems to be that the Temporal Python SDK uses Rust via pyo3.
After posting in the Temporal forum here, they suggested that the Temporal situation is similar to Pydantic. For Pydantic, there is this patch to make it work.
Is this assumption correct? If so, would it be possible to add support for temporalio in a similar fashion?
Any support here would be greatly appreciated. If there's any way I can contribute, I'd be happy to, although I'm rather new to the whole Python ecosystem.
Many thanks!
Peter