Skip to content

'write-a-composition-function-in-python' guide doc doesn't work #1000

@surajdubey08

Description

@surajdubey08

URL

https://docs.crossplane.io/latest/guides/write-a-composition-function-in-python/

What's Wrong?

I followed each and every instruction mentioned there from using command 'crossplane xpkg init function-xbuckets https://github.com/crossplane/function-template-python -d function-xbuckets' to create a folder till 'hatch run development' but the example never works.

Errors I get:
function-xbuckets.venv-default\Lib\site-packages\google\protobuf\runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.31.1 at crossplane/function/proto/v1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
warnings.warn(
function-xbuckets.venv-default\Lib\site-packages\google\protobuf\runtime_version.py:98: UserWarning: Protobuf gencode version 5.29.0 is exactly one major version older than the runtime version 6.31.1 at crossplane/function/proto/v1beta1/run_function.proto. Please update the gencode to avoid compatibility violations in the next runtime release.
warnings.warn(
Cannot run function:

I request either update the example or fix the docs.

Also if I am missing something then please let me know. 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions