Skip to content

Support for temporalio 1.10.0 #494

Open
@petersommerhoff

Description

@petersommerhoff

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

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