crossplane / crossplane/docs

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

Open
#1,000 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
SCSS
Stars
60
Forks
163
Avg merge
15h 20m
Merged PRs (30d)
9

Description

### 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. 😁

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.